Re: [Cppcms-users] View skin
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-03-21 08:13:20
|
> Thanks for response. > I have tried it with the same skin name across all views, > but It just does not produce anything. Each cppcms template compilation unit should have its own skin name. It is actually namespace - the module. You should for course have different view names (classes) withing the same skin but view names can be shared between different skins (namespaces) You can define skin name by two methods: - using <% skin NAME %> - using -s NAME flag for cppcms_tmpl_cc > > As soon as I supply different name for each view, it works fine. Can you show the code - the pattern you use > Should I include the skin name in the config.js or ... ? If you create **dynamically loadable** view than yes, if it is statically linked then: If you have multiple skins you man need to define only the default one > I cannot really see what is wrong as the views are > working fine with distinct skin names. > Each compilation unit created by cppcms_tmpl_cc should have distinct skin names > >Any suggestions. >Thanks, > > More pointers: http://cppcms.com/wikipp/en/page/cppcms_1x_tut_hello_templates http://cppcms.com/wikipp/en/page/cppcms_1x_tut_templates_inheritance http://cppcms.com/wikipp/en/page/cppcms_1x_templates_gen http://cppcms.com/wikipp/en/page/cppcms_1x_config#views Artyom Beilis |