goods/tmpl — Issue #3: Comments
Author: zeebo
Created: 2012-03-03 22:37:28+00:00
State: open
Labels: enhancement, question

Right now I'm thinking about adding comments as a token "!" that must come after an open "{%". It would respect nesting so that the output of

`foo {% ! bar baz {% doot %} bar %}`

is

`foo `

Of course this makes it tricky to comment out a {%, so you cant do {%! {% %}, but i'm not sure that will come up very often.

I really like being able to comment out entire blocks or other sections just by putting a ! at the top, but it worries me that it might be a little easy to miss. Maybe something like {%#, or even use {# #} as comment sections and ignore nesting? Thoughts?