[web-devel] Comments in Hamlet

Michael Snoyman michael at snoyman.com
Wed Aug 11 10:04:04 EDT 2010

After everyone gave me such great naming advice for Cassius and Julius, I've
decided to be greedy and ask for some more help. The subject: comments in
Hamlet. I've been asked a few times to add a feature where you can comment
your templates, so I wanted to discuss it with the list.

I'm really trying to avoid making any more special characters, so the first
thing that comes to mind is to reuse an old character. My thought was to
allow "$#" at the beginning of a line turn the whole line into a comment.
What are people's thoughts on that?

Also, Hamlet and Cassius almost certainly should have the comments, but I'm
not sure about Julius. Since it's basically just raw Javascript, I think
people should use Javascript comments, and then hopefully in the future
we'll include Javascript compression in Hamlet that removes all comments.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/web-devel/attachments/20100811/55c62252/attachment.html

More information about the web-devel mailing list