[stringtemplate-interest] Web app - read templates from multiple directories

Terence Parr parrt at cs.usfca.edu
Sun Nov 1 01:06:31 PST 2009


On Nov 1, 2009, at 5:49 PM, Ran Tavory wrote:

> I've implemented a string template result type for struts2, and so  
> far I'm very happy with st, but there's one limitation I haven't  
> been able to figure out.
> It seems ST requires all template files to be at the same directory.  
> (or did I miss anything?...)
> So, for medium to large web-apps this is an annoyance. I'd like to  
> be able to create multiple directories, such as "full_pages" or  
> "layouts" or "snippets" or "reports" and be able to load  
> multiple .st files from their common parent directory.
>
> Is there a way to get over this limitation?

Use subdirectories and then use $misc/searchbox()$ and $gutter/ 
leftnav()$ etc :)

Ter


More information about the stringtemplate-interest mailing list