[Klone-users] Interpreted C comment
Stefano Barbato
barbato at koanlogic.com
Wed May 21 14:17:53 EDT 2008
Hi,
the error is actually unrelated to C comments, it shows up because
klone escape sequences (<%, %>, <%! and <%=) cannot be nested (so the
closing tag of "<%=myvar %>" block is interpreted as the closing tag
of the outer level).
bye!
s
On 21/mag/08, at 15:20, Mickael Auger wrote:
> Hi,
>
> I have a little problem. I noticed that HTML code containing "<% ...
> %>" tag in a block /* ....*/ ware interpreted and that they trigger
> errors on KLone compilation.
>
> My (strange) kl1page is :
> ========================
> <%!
> static const char *myvar;
> %><%
> myvar = "coucou";
> %>
> <html><body>
> <%
> /*
> <%=myvar %>
> */
> io_printf(out,"%s",myvar);
> %>
> </body></html>
> ========================
>
> The compilation error is :
> =========================================
> /home/all_user/ug_ma/klone-2.1.1rc0-m68k/webapp/www/test.kl1:9:
> unterminated comment
> /home/all_user/ug_ma/klone-2.1.1rc0-m68k/webapp/www/test.kl1: In
> function `exec_page':
> /home/all_user/ug_ma/klone-2.1.1rc0-m68k/webapp/www/test.kl1:41:
> parse error at end of input
> make[6]: *** [pg_3d27a7ea8351fdd102762cbf1cd78fbe.o] Erreur 1
> =========================================
> I know that it's easier to parse a kl1 page with interpretation of
> all specific tag (like "<%", "<%=" ...), but is it a problem or not ?
>
> Thanks.
> --
> Mickaël AUGER
> mickael.auger at gmail.com
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
More information about the klone-users
mailing list