3 ms·
And there are also libraries in other languages as well. For eg: * There's Builders in Groovy (http://groovy.codehaus.org/Builders http://groovy.codehaus.org/
by draegtun 16y ago
And there are also libraries in other languages as well. For eg:
* There's Builders in Groovy (http://groovy.codehaus.org/Builders http://groovy.codehaus.org/Builders)
* Markaby in Ruby (http://en.wikipedia.org/wiki/Markaby http://en.wikipedia.org/wiki/Markaby)
* and Markapl and Template::Declare in Perl (http://search.cpan.org/perldoc/Markapl http://search.cpan.org/perldoc/Markapl & http://search.cpan.org/perldoc/Template%3A%3ADeclare http://search.cpan.org/perldoc/Template%3A%3ADeclare).
Here is the snippet in blogpost using Markapl:
div('.red') {
p { "hello world" }
}
Also see related HN: http://news.ycombinator.com/item?id=705698 http://news.ycombinator.com/item?id=705698
- spooneybarger 16y agoMy only problem with markaby is that all the do ... end for blocks sort of defeats the purpose for me. not completely but partially. that said, i often use it.