in reply to Testing Template, or should I write a diff for TT templates?
then the production-template must also contain an "IF FOO" block inside which the variable "FOO" is filled in, and filtered through "html".[% IF FOO %] blah blah [% FOO | html %] [% END %] blah blah blah
This is all the template designer should be interested in (a structurally valid template), unless, like merlyn said, they also need to make sure the template is valid xml, which they can go ahead and test by running the application test suite or whatever...tstest new original new:34: variable FOO doesn't use FILTER `html' like original:44: in b +lock "IF FOO" new: missing variable BAR like original:66
See also Unit Testing Generated HTML
|
|---|