I understand that the hierarchy, in cppcms for templates, goes skin (topmost, representing a namespace), then view (representing a class) and finally template (representing a function).
I want to know when I should use a skin and when I should use a view; would each page be a skin or would it be a skin per application, etc.
Could you explain when each should be used and could you give some examples?
1 Answer 1
Read these tutorials carefuly:
- http://cppcms.com/wikipp/en/page/cppcms_1x_templates_gen
- http://cppcms.com/wikipp/en/page/cppcms_1x_tut_templates_inheritance
They cover the topic.
I want to know when I should use a skin and when I should use a view; would each page be a skin or would it be a skin per application, etc.
Almost always you would use views... Skins are for "skinning" purposes or for totally separate units like for example "general pages" and "administrator interface" that share almost nothing - and it is yet non-mandatory.
Explore related questions
See similar questions with these tags.