3 ms·
Another one: https://github.com/riffm/mint https://github.com/riffm/mint
by piranha 16y ago
Another one: https://github.com/riffm/mint https://github.com/riffm/mint
- true_religion 16y agoAh 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=">b<title>/b<"> <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.