[Klone-users] Interpreted C comment

Mickael Auger mickael.auger at gmail.com
Wed May 21 09:20:42 EDT 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://koanlogic.com/pipermail/klone-users/attachments/20080521/e17367ed/attachment.html


More information about the klone-users mailing list