4 ms·
Sensible html templating exists already. It's called HAML. http://haml-lang.com/ http://haml-lang.com/
by rorrr 16y ago
Sensible html templating exists already. It's called HAML.
http://haml-lang.com/ http://haml-lang.com/
- sgrove 16y agoActually, while developing this I was really struck by the similarities. With the automatic indenting in emacs for lisp (really quite good), it looks very similar, and it's impossible to leave a tag unclosed, but there's a further gain for using parentheses in that with paren-highlighting, you can tell exactly which tag your in. While I converted several dozen pages to this system from straight html, I was saved again and again by this. HAML's great, and I disagree with the other "I hate haml" post on the frontpage today, but this approach actually alleviates the issues pointed out with haml's whitespace-is-meaningful approach. Anyway, it's all in good fun.
- rapind 16y agoYup I'm a huge haml fan, and saw the similarities. I thought your post was great. Very clean, and you can keep optimizing it. I'm learning CL right now and this added some fuel to the motivation fire ;)