Hi,

recently I got 2 feature requests concerning new tags. Or actually just a 
different syntax for existing functionality. Both are directed to better 
interoperability with existing html or xml-tools.

The first was to add long syntax for existing short tags. We have already 
synonyms <{...}> and <%cpp>...</%cpp>. The former beeing shorter and the 
latter more xml-like. The suggestion is to add xml-like synonyms for <$...$>, 
<$$...$> and <? ... ? ... ?>. I suggest adding the synonym <%sout>...</%sout> 
for <$...$> and <%out>..</%out> for <$$...$>. The third <?...?...?> is not so 
useful. At least I and no one else I know do use it any more. I would just 
leave it as it is.

Just for your help: <$...$> prints a c++ expression into the page replacing 
special html-characters with their html-entity counterparts. In a c++-block 
you may use "reply.sout() << something" for that.
<$$...$> do not replace html-characters. It is the same as using "reply.out() 
<< something" in c++.

So it would be quite natural to use <%sout> for <$...$> and <%out> for <$$...
$>.

The other suggestion is to add html-comment markers to the tags. So e.g. 
<%cpp>...</%cpp> may be written as <!--%cpp>...</%cpp-->. Ecpp-files may be 
then edited using ordinary html editors, which will see the c++-things as 
html-comments. This is a little more difficult to implement but if it is a good 
feature, I would implement it.

My co-worker, who suggested it, uses already this html-comment style using a 
sed script to translate the pages before running ecppc, so it is already 
somewhat tested in practice.

All ecpp syntax used today will be kept, so that there is no need to change 
anything in existing apps.

Any opinions?

Tommi

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to