layout-config and wildcards

26 views
Skip to first unread message

dylanmac

unread,
May 16, 2012, 12:47:32 PM5/16/12
to SiteMesh 2 Users
Hi -

I'm trying to capture URL patterns in my layout-config file using
wildcards, but I think I may be violating its pattern matching
abilities.

I want to be able to apply a css file to any URLs that contain the
string "resources/" such as:

/resources/index.htm
/advisor_resources/index.htm
/institutional_resources/index.htm

The way I am trying to capture these patterns in layout-config is like
this:

<layout name="resources" extends="main" url="/*resources/*">
<property name="css" merge="true" value="/css/
resources.index.css"/>
</layout>

This isn't working. Is it possible to use wildcards in this way to
capture the pattern?

Joe Walnes

unread,
May 16, 2012, 2:09:51 PM5/16/12
to sitemes...@googlegroups.com
The <layout> tag is not part of SiteMesh. I'm not sure what it is. What other frameworks are you using?

Dylan MacDonald

unread,
May 16, 2012, 5:28:32 PM5/16/12
to sitemes...@googlegroups.com
Hi Joe -

Hmm, I was wondering that myself. We're using Spring with SiteMesh.

A fellow developer seemed to think layout-config was sitemesh but I guess not.

- Dylan
Reply all
Reply to author
Forward
0 new messages