Template trickery

dws on 2003-01-07T20:45:13

While developing a set of dynamic pages using HTML::Template, I was spending a lot of time pulling up debug logs. So, by way of industrious laziness, I figured out a simple way to have a templated page turn into a debug log on demand (e.g., if the log isn't empty). I posted the technique here [perlmonks]. I'd be surprised if it's original.