News for hackers. Stuff that matters.
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.

Look at this:

    @p.class(title).title({{ doc.title }}) {{ doc.title }}
That transforms into this HTML (unescaped urls because Mint produces XML by default):

    <p class="title" title="&gt;b&lt;title&gt;/b&lt;">
        <b>title</b>
    </p>
The alternative in Nemo is:

    % 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.

There are no comments on this comment yet.