Re: [Cppcms-users] templates: newline on every include
Brought to you by:
artyom-beilis
From: kpeo <sla...@ya...> - 2012-02-21 09:27:18
|
yes, it good for performance, but not so well for reading of big template (ideally - all in one line). Shure - performance is the main goal. my first thought - skip any spaces (including newlines) between reserved word and first symbol (not reserved word) and skip it before reserved word in cppcms_tmpl_cc processing. anyway, thank you for answer! > > Or write the code like this: > > <% template call3() %><%= text %><% end template %> > > <% template call2() %><% include call3() %><% end template %> > > <% template call1() %><% include call2() %><% end template %> > > <% template render() %> > <html> > <body> > <h1><% include call1() %></h1> > </body> > </html> > > <% end template %> > > ---------------- > > Everything withing the template tags rendered as-is that is why you see many "newlines" > but they are actually in your sources. > > Artyom > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |