in reply to Text::Xslate : append to hash or array?

This issue might be related.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Text::Xslate : append to hash or array?
by bliako (Abbot) on May 12, 2020 at 13:34 UTC

    Does not look promising. Reality check: is asking the template system to transform a bit (just a bit) the data, like adding another key-value pair to an input hash something that is discouraged? and my design is bad?

      Those questions are independent. In a pure View all action upon data is discouraged. Whether or not that is good or bad depends on one’s philosophy. I primarily use Text::Xslate now and, as you’ve found, it is quite irritating and unperly sometimes to have to be so careful about what to send it; it plays badly with some default DBIx::Class behavior for example. It is the a proverbial slippery slope between Text::Xslate which says, No! and Template::Toolkit which says, Yes, a million times, yes! No one really wants to hear …Maybe…

        I see.