Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Read these tutorials carefuly:

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.