new test script to help debug template errors
authorGalen Charlton <gmcharlt@gmail.com>
Sun, 14 Feb 2010 23:05:45 +0000 (18:05 -0500)
committerGalen Charlton <gmcharlt@gmail.com>
Sun, 14 Feb 2010 23:09:33 +0000 (18:09 -0500)
commit9c7d9b0934f36789177c3e7ba45b26687be384f2
tree174ead66428a6342a2a0870b608402cca71887a6
parente476adcb9cf372dd1b058f2143a01044b6738484
new test script to help debug template errors

From the POD:

NAME

show-template-structure.pl

DESCRIPTION

This script displays the structure of loops and conditional statements in
an HTML::Template::Pro template, and is an aid for debugging errors
reported by the xt/author/valid-templates.t test.  It also identifies the
following errors:

* TMPL_IF/TMPL_UNLESS/TMPL_LOOP with no closing tag
* TMPL_ELSE with no initial TMPL_IF or TMPL_UNLESS
* extra closing tags
* HTML comment of the form <!-- TMPL_FOO ..., where TMPL_FOO is not a valid HTML::Template::Pro tag

USAGE

xt/author/show-template-structure.pl path/to/template.tmpl

Output is sent to STDOUT.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
xt/author/show-template-structure.pl [new file with mode: 0755]