liujianguang / embeddedjavascript

Automatically exported from code.google.com/p/embeddedjavascript
Other
0 stars 0 forks source link

Comments #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Would it be possible to add the <%-- --%> comment "escape"? 

Thanks 

Original issue reported on code.google.com by xanato...@gmail.com on 13 Oct 2009 at 8:00

GoogleCodeExporter commented 8 years ago
You can't just do  <% /* abc */ %>

Original comment by JustinBMeyer@gmail.com on 28 Oct 2009 at 5:47

GoogleCodeExporter commented 8 years ago
I think that would be a really neat syntax (or for me it would be <?-- blah 
--?> (custom open close tags).

For some reason the following breaks template execution:

<? // single-line comment ?>

I believe that this should work to fall in line with PHP (which does support 
this kind of comment). The following works as expected:

<? // single-line comment
?>

Original comment by leaha...@gmail.com on 13 Nov 2011 at 1:19

GoogleCodeExporter commented 8 years ago
Actually I think that I would prefer the syntax:

<%-- my comment ?>
<?-- my comment ?>

Original comment by leaha...@gmail.com on 13 Nov 2011 at 1:25