I have group of pages on site that is statically generated using nanoc
; each group represents one document kind and has it's own template. Each group template is a little different. For example, main template:
<html>
<body>
<--header-->
<--news-->
<--content-->
<--sidebar-->
</body>
</html>
And then some other template maybe will not have news
section, but will have the footer
:
<html>
<body>
<--header-->
<--content-->
<--sidebar-->
<--footer-->
</body>
</html>
and so on. What would be better thing to do:
[A] to have one master template and then to have a flag to turn on/off certain imports
or
[B] to have many smaller templates that include common chunks of html?