views:

43

answers:

2

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.

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
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