Re:Introducing Nemo: A Pythonic Haml
by true_religion on Thursday January 06, 2011 @03:31PM
(#2077019)
Ah I forgot about Mint.
I don't want to talk badly about it--because to be honest it has some really cool features like chained-method-calls that allow you to quickly compose HTML attributes via inheritance----but Mint has always struck me as more Perl than Python.
% p .'title' title='${doc.title}' || ${ doc.title }
I don't know why Nemo looks better in my eyes but I think it has to do with explicit separation, and string substitution instead of a method-call syntax.
Mint feels like a programming language that happens to produce HTML as a side-effect.
I don't want to talk badly about it--because to be honest it has some really cool features like chained-method-calls that allow you to quickly compose HTML attributes via inheritance----but Mint has always struck me as more Perl than Python.
Look at this:
That transforms into this HTML (unescaped urls because Mint produces XML by default): The alternative in Nemo is: I don't know why Nemo looks better in my eyes but I think it has to do with explicit separation, and string substitution instead of a method-call syntax.Mint feels like a programming language that happens to produce HTML as a side-effect.