in reply to Re: Can I automatically generate documentation from HTML::Template?
in thread Can I automatically generate documentation from HTML::Template?

When I have templates within templates, this approach is not as useful as I hoped, for large documents at least.

I would prefer documentation that summarizes the hierarchical HTML structure and the variables used, perhaps even automatically generating diagrams.

It seems that most general-purpose things like this that I can easily imagine have already been written. Perhaps another templating system has such a feature? If not, I can take care of it.

It should work perfectly the first time! - toma
  • Comment on Re: Re: Can I automatically generate documentation from HTML::Template?

Replies are listed 'Best First'.
Re: Re: Re: Can I automatically generate documentation from HTML::Template?
by hardburn (Abbot) on May 17, 2004 at 16:52 UTC

    If I understand you correctly, you want a central repository that contains the variables used in each template file. I don't know of any current tools for this. It shouldn't be too difficult, though. HTML::Template->param() in list context returns the names of all variables in the template. This may suffice for your purposes.

    ----
    : () { :|:& };:

    Note: All code is untested, unless otherwise stated