If I declare lazy attribute in perl class using Moose, and the attribute is using builder:
has 'colors' => (
is => 'rw',
isa => 'ArrayRef',
lazy => 1,
builder => '_build_colors',
);
then in Template::Toolkit template I'll try to use this attribute:
[% FOREACH color IN colors %]
...
[% END %]
I'll get nothing. I have to call this attr manualy in perl script before processing the attribute with TT. Is there any way TT can initialize this attr by himself?