[web-devel] Comments in web-routes-quasi, hamlet, etc

Michael Snoyman michael at snoyman.com
Tue Oct 5 15:19:40 CEST 2010


On Mon, Oct 4, 2010 at 10:02 PM, Tim Matthews <tim.matthews7 at gmail.com> wrote:
> On Tue, Oct 5, 2010 at 4:17 AM, Max Cantor <mxcantor at gmail.com> wrote:
>>
>> I think this might already have been beaten too death, but there any way
>> of getting a comment syntax (even very simple, anything after -- is a
>> comment) into the next version of all the QQs?
>>
>
>
> If a line begins with $# it produces a comment until the end of line. Eg:
>
> Text
> $# Comment
> %br
> More Text
>
> becomes:
>
> Text
> <br>
> More Text

This is also true for Cassius. Julius currently doesn't define
commenting, but you can just use Javascript comments (/* */) if you
want. We could try to add some kind of comment to Julius, but I think
efforts would be better spent on a Javascript minifier[1] that will
simply remove Javascript comments automatically.

Michael

[1] http://github.com/alanz/hjsmin


More information about the web-devel mailing list