proposal for a simplistic view support
Hussayn Dabbous <[email protected]> Tue, 9 Jun 2009 11:03:17 -0700 (PDT)
| Newsgroups | gmane.comp.java.scarab.user |
|---|---|
| Message-ID | <[email protected]> |
Is it possible to configure velocity/turbine so that it can lookup
for templates in multiple directories/hierarchies ?
e.g. would it be possible to create a "copy" of the
templates-directory which contains only a modified subset of
the original templates, and then tell Scarab to first look up
templates in the new-directory and only if it can not
find a template there, look it up in the WEB-INF/templates
directory instead.
Could i make such a configuration dynamic in the sense
that Scarab only looks up in the copied directories
on demand, e.g. by adding a parameter to the URL
like this:
localhost/scarab/issues/id/124/view/myview
Geting this url, Scarab would first lookup files in
WEB-INF/templates/view/myview/...
and only if it does not find a file here, it will try it with the
default at WEB-INF/templates/...
if in contrary Scarab would get this URL:
localhost/scarab/issues/id/124
it would immediately lookup in the default-place at WEB-INF/templates/...
(as at the moment it allways does)
Is there a better way to go in order to get views easily ?
I know i could place control statements directly into the velocity
templates,
but that would lead to many changes in the templates if i wanted to
implement such a view system...
--
View this message in context: http://www.nabble.com/proposal-for-a-simplistic-view-support-tp23948293p23948293.html
Sent from the Scarab - User mailing list archive at Nabble.com.
------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=456&dsMessageId=2360705
To unsubscribe from this discussion, e-mail: [[email protected]].