Re: [Cppcms-users] razor like syntax for templates
Brought to you by:
artyom-beilis
|
From: Lee E. <lee...@gm...> - 2013-05-20 05:48:34
|
Thanks Artyom,
Marcel when you say razor like template system - are you talking about
building the templates differently - so that the end result CPP will be
compatible with the skin system, but that templates needs to be
restructured to the new system?
or do you see the same existing <% ... %> code structure converted to
something more readable like the @ prefix?
If you think about the first - i suggest do it from scratch, and generate
cpp (and perhaps h files) from the template file independently of the
cppcms_tmpl_cc - also adopt some limitation on the generated cpp code that
will make your life easier (like each file have only one implicit template
in it - or that @section "name"{ ... } will define another template, but
have it follow a predefined signature), and i would also adopt a separate
extension like cpphtml to follow the razor convention for c# and vb
if you think on the second approach - it will be much faster, i would base
it on the existing cppcms_tmpl_cc script, but the end result will not feel
razor IMO since you will not be able to use C++ language constructs freely
inside the page
i do not have the time to pick up this project on my own right now - but if
you say what direction you are going, i'll try and help
On Sun, May 19, 2013 at 4:50 PM, Artyom Beilis <art...@ya...> wrote:
>
> >PS: Artyom what happened to the changes i made to cppcms_tmpl_cc? that
> allowed for separate template compilation and use of header files? I
> noticed that it got dropped somewhere in the versions - and i hadn't had
> the time to resend it to you with updates.
> >
> >
>
>
> It is in trunk...
>
>
> Artyom Beilis
> --------------
> CppCMS - C++ Web Framework: http://cppcms.com/
> CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
--
--
lee
Lee Elenbaas
lee...@gm...
|