I have the following use case:
My diazo theme will include one of more theme html files depending on the part of the site which is visited. I am able to create a rule which conditionally loads a html template.
I want to include a common html fragment mega-menu.html in any of the templates rather than duplicating the html.
|--[html]--|--index.html | |--services.html | |--blog.html | |--mega-menu.html | |--rules.xml
If I replace the nav element from one of the template with my mega-menu nav e.g. like this:
<replace css:theme="nav" css:content="nav" href="++theme++my.theme/html/mega-menu.html" />
the fragment is included but I am unable to apply any further customizations.
How can this be done?