I want multiple decorators, as documented here: https://github.com/sitemesh/sitemesh2. I provide multiple decorators in decorators.xml but the main decorator gets applied to every file in my project. E.g. my decorators looks like this:
<decorators defaultdir="/WEB-INF/decorators">
<decorator name="main" page="main.jspx">
<pattern>/*</pattern>
</decorator>
<decorator name="other" page="other.jspx">
<pattern>/spring/other/*</pattern>
</decorator>
</decorators>
And both /spring/some/page.jspx
and /spring/other/page.jspx
both render with the `main.jspx' template.
What am I doing wrong?