Re: [htmltmpl] wish: <tmpl_dump>
Brought to you by:
samtregar
From: Sam T. <sa...@tr...> - 2005-08-07 17:57:10
|
On Sat, 6 Aug 2005, Mark Stosberg wrote: > It should be easier for a designer to get an answer to the question: > "What tokens do I have available?" > > I think there is a fairly reasonable way to make this easier. > > A <tmpl_dump> tag could be added which outputs all the possible > tmpl_loop tmpl_var names, along with their values, right in the > template. It sounds nice but I'd personally find it pretty useless. Most of my use of HTML::Template involves inspecting the template with query() and setting up the variables and loops that are actually requested. This is how Krang works, for example. > It can output human-friendly YAML, which could simply be wrapped > in a <pre> tag to complete the presentation. Heh. Human-friendly YAML, huh? I'd aim for something a little friendlier than that - like formatted HTML. BTW - your pluggable stuff looks great. I'm fresh out of time to look at it more closely but I think you're on the right track. I'm not completely convinced it belongs in-core yet, if only because that would put you at the mercy of my absurdly slow release schedule... -sam |