cjoy has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to have Template Toolkit output a HTML comment containing the file path when each template is called, without specifically declaring it in every single file / block?
The idea is to more easily track down what template a piece of markup in the browser came from (usage context is Bugzilla 5.0).
A quick search in both, the TT documentation and the Badger book yielded no results.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Template Toolkit - Output Template Name / Filepath as HTML Comment
by 1nickt (Canon) on Jun 25, 2015 at 16:19 UTC | |
by cjoy (Initiate) on Jun 25, 2015 at 17:53 UTC | |
by 1nickt (Canon) on Jun 25, 2015 at 18:55 UTC | |
|
Re: Template Toolkit - Output Template Name / Filepath as HTML Comment
by jeffa (Bishop) on Jun 25, 2015 at 16:18 UTC | |
by cjoy (Initiate) on Jun 25, 2015 at 18:17 UTC | |
|
Re: Template Toolkit - Output Template Name / Filepath as HTML Comment
by codiac (Beadle) on Jun 26, 2015 at 10:03 UTC | |
|
Re: Template Toolkit - Output Template Name / Filepath as HTML Comment
by petdance (Parson) on Jun 29, 2015 at 18:32 UTC |