Search code examples
javajspdecoratorsitemesh

Extracting a DIV's content using Sitemesh Decorators


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.


Solution

  • NB Black Sensei has posted a better answer below.

    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.