[stringtemplate-interest] ST4: Directory STGroups, common templates, relative template names?

Barrie Treloar baerrach at gmail.com
Wed Apr 20 18:00:38 PDT 2011


I've been thinking about this some more.

So the advice really is "All entry points into ST should be via a STGroupFile"
Even if you have a simple template, it would still be beneficial to
use a STGroupFile so that when the template gets enhanced you already
have all the features you need.  Only the most basic templates should
just be a template file.  All support templates (i.e. never called
directly from code) can be basic templates.
STGroupDir features should only be used from within a STGroupFile,
dont try to use STGroupDir as an entry point for into ST.

Admittedly I read the ST 3 documentation a long time ago, and I've
only re-read the ST 4 documentation since then.
Is this advice sound?
Would it be worthwhile adding something like that to the wiki pages?


More information about the stringtemplate-interest mailing list