[stringtemplate-interest] Helpers

Phillip Neumann pneumann at gmail.com
Thu Oct 21 09:07:14 PDT 2010


Hello all,

Im trying to use ST in a project, for generating HTML and have two questions

1) Im drawing a html table, and need to put class=odd or class=even in the rows.
    Whats the correct way to do this?

2) I have a object $obj.Price$ and need to show the half of it.
   Can i do something like $obj.Price/2$ ?

I've hear this would break the logic/view separation stringtemplate uses.

What would be the correct way to do this?

Thanks in advance,
-- 


__________________
Phillip Neumann
pneumann at gmail.com


More information about the stringtemplate-interest mailing list