Hi! Artyom,
Thank you for pointing me to that documentation!
I am confused. Does the following excerpt indicate that the template name "render()" is mandatory?
"Each skin should implement render() virtual member function, unless it is already implemented in its parent."
Regards,
CN
-----Original Message-----
From: Artyom <art...@ya...>
To: cpp...@li...
Sent: Sun, Sep 5, 2010 12:36 am
Subject: Re: [Cppcms-users] Template name "render()"
This is not mandatory name, this is default template
that is rendered when rendering specific view.
Read this: http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_templates_gen
Artyom
From: "cn...@gr..." <cn...@gr...>
To: cpp...@li...
Sent: Sat, September 4, 2010 6:11:03 PM
Subject: [Cppcms-users] Template name "render()"
Hi!
The compiled program "hello-tmpl" stops working if I change
<% template render() %>
to
<% template output() %>
in file "first.tmpl" under "~/examples/templates/" extracted from cppcms source tarball. I suspect this is because the template system demands that the exact member function
virtual void render(){ ... }
exist in order to be able to write out stuff. If I am right, it would be nice to see this mandatory template name "render()" be documented (preferably in page "Templates: Top Level Blocks (v 1.x)").
Regards,
CN
|