[stringtemplate-interest] Padding for all
Terence Parr
parrt at cs.usfca.edu
Thu Jun 1 10:31:49 PDT 2006
On Jun 1, 2006, at 6:47 AM, Dreyer Ulf (CR/APA3) wrote:
> Hi all!
>
> Is there a simple way in ST to pad
> any outputvalue from within a template?
Not that I can think of. We do not have a length operator yet.
> That is without defining a load of
> wrapper classes (attribute renderers).
Perhaps somethign in the output writer object?
> Although padding is a computation on the data
> it does not (not really) depend on the data
> but on the output and should be possible within
> templates.
it would not violate separation I don't think. length is not a
function of data value, just an attribute of the data.
Ter
More information about the stringtemplate-interest
mailing list