2 ms·
No, because the Lisp template language isn't just another syntax for HTML: it contains control structures and other constructs not supported by HTML.
by jules 17y ago
No, because the Lisp template language isn't just another syntax for HTML: it contains control structures and other constructs not supported by HTML.
- ajuc 17y agoLike any templating engine I've seen - there are "for each", "if then else" etc. It's just matter of convention - designer should know what he can change, and what he cannot - lisp-encoded html is almost like normal html, and has the adventage of being compiled - some static checking can be done. When you extract data producing into functions only called b name in code that is emiting html it will lokk just like html template, and it has all the clojure power when it's needed.