I’m using closure templates and I can’t figure out how to have one main template with common stuff such as logo and when I render other templates they will be rendered inside the main one. I want to have a servlet for each template.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you could to would be something like this:
Call the main template from inside the other templates. Inside the other templates you can define the parameters for your main template.
For example:
Of course you end up with a lot of parameters if you want to have a flexible and full html page. But this should lead you the way.