[stringtemplate-interest] Spaces around template attributes

Steve Ebersole steve at hibernate.org
Wed Apr 29 12:07:49 PDT 2009


Personally I dont like that.  StringTemplate is all about isolating
"presentation" from logic.  This question of spaces is a presentation
concern.  Just like StringTemplate does not allow you to push logic into
the templates, I'd prefer to not start handling presentation concerns in
my logic if in any way possible.


On Wed, 2009-04-29 at 20:59 +0200, Micha wrote:
> Am Wednesday 29 April 2009 17:39:55 schrieb Steve Ebersole:
> > That worked, though obviously I think you lose a little bit of the
> > intention there.  But it was the "cleanest" solution in terms of being
> > able to contain it within the template group file and still have a
> > (hopefully?) well-performing solution.
> 
> maybe you can add the space at the calling side to the arguments and write:
> <sortKey><collationSpecification><orderingSpecification>
> 
>  Michael
> 
-- 
Steve Ebersole <steve at hibernate.org>
Hibernate.org



More information about the stringtemplate-interest mailing list