in reply to Re: Template toolkit XSS
in thread Template toolkit XSS

Wouldn't it be easier to address data validation and use case handling in the pure Perl that calls it rather than in the template?

Two separate issues

The model does its own validation for correctness

The view (template) does its own "validation" ... to ensure correct display of stuff, html, json ... whatever

Replies are listed 'Best First'.
Re^3: Template toolkit XSS
by anonymized user 468275 (Curate) on Aug 05, 2015 at 10:57 UTC
    TT can certainly do that, although I would personally find it conflicts with my code design objectives in regard to the downscalability of testable units.

    One world, one people

      What?
        Well, I am deducing that you are expecting the template to render quite complex functionality whereas I'd want it split up more for testing.

        One world, one people