12 ms·
I haven't seen it used outside of Rails apps, but have you ever tried Slim? I understand there's a similar tool for Node.js called Jade. http://slim-lang.com/
by canadev 12y ago
I haven't seen it used outside of Rails apps, but have you ever tried Slim? I understand there's a similar tool for Node.js called Jade.
http://slim-lang.com/ http://slim-lang.com/
table
tr
th Col1 Header!
th Col2 Header!
tr
td Col1 Value...
td Col2 Value...
Renders to HTML.
- RobertKerans 12y agoSlim/Jade/HAML etc are templating languages, they're not designed for writing text at all - they're almost the opposite of markdown et all.
- canadev 12y agoI wouldn't say they're the opposite of Markdown, but that's not really the point I was getting at anyway. The poster I was replying to was saying that two of his issues with using HTML to write documents were the verbosity and the escaping. Slim solves those two issues.
- RobertKerans 12y agoAh, apologies, point taken. Note that most of that style of templating language include markdown filters as well - so you drop :markdown in, then just write a block of text, works really well.