I would like to know how I can extract the content of a specific DIV using decorators, instead of using <decorator:body />
which will fetch all the content inside the <body>
tag.
views:
43answers:
2
A:
I don't think this is possible. Sitemesh is a pretty basic templating system that has very few tags - five in all. There's a full list here decorator taglib
You might want to look at another templating system if you need that level of control.
Mark Chorley
2010-09-15 09:53:13
A:
SiteMesh comes with com.opensymphony.module.sitemesh.multipass.DivExtractingPageParser. It's limited in functionality; it only extracts the divs one level below the body.
mathman
2010-09-27 13:13:14