[stringtemplate-interest] Output string lengths..
Terence Parr
parrt at cs.usfca.edu
Sat Dec 9 13:22:41 PST 2006
On Nov 29, 2006, at 2:06 PM, Rob Hill wrote:
> In fact after re-visiting my padded string requirement, it’s far
> simpler to pad the string before I stuff it in the template.
Hi Rob. That could possibly be considered a violation of putting
view-oriented characters in the model and pushing it into the view.
> After writing a custom renderer, i couldn’t see the point in
> actually adding all the code to put the padding in a class, and
> then set the renderer, when i could just pad the string using the
> same function before i insert it into the template.
You have to be careful that you do not go too far and start putting
HTML and strings, which you send to the view.
> Infact, im not sure i see the point in custom renderers at all now
> i think about it.?
To avoid having view stuff in the model in general.
Ter
More information about the stringtemplate-interest
mailing list