[Cppcms-users] render sub-template without parents
Brought to you by:
artyom-beilis
|
From: bibermann <fab...@gm...> - 2014-10-15 14:45:16
|
Hello, I'm going to use CppCMS for an Ajax-driven site and am wondering whether it's possible to only return the HTML for a sub-template. Considering the example given in http://cppcms.com/wikipp/en/page/cppcms_1x_tut_templates_inheritance where we have the following template hierarchie: master / | \ news page intro I want to be able to both render the news normally and as part of an ajax request to update the news item without reloading the full page, i.e. returning page_content() of this template. Can I achieve this functionality with CppCMS or do I need to create two version of "news"? Thanks in advance, bibermann |