On Wed, 25 Jun 2003 [EMAIL PROTECTED] wrote:
> Subject: [Templates] Metadata question
>
> Is there a way to get the list of the names of variables=20
> that a template uses?  Alternatively, is there a way to embed=20
> information (i.e., variable names and brief descriptions) into=20
> the template n such a way that it can easily be extracted?
> I had originally thought that META would do this, but=20
> it seems to be intended for something different.

[ randal's reply about META snipped ]

I am also looking for some kind of API allowing a script to detect what a
template is asking for such as include/process, plugins and variable
names.

This would allow me to build all or any of linting code ( silly mistakes
are the hardest to spot) , autodocumentation (its always handy to know
which templates use which includes when you have a complex site with
dozens of directorys and hundreds of templates many of which appear no
longer used) and code generation ( either code stubs and/or building
SQL and perl to populate a template )

Any information on how to do this would be much appreciated.

I also notice on Theory's use.perl journal that Andy has mentioned the
idea of a common api - a common method of accessing template includes and
variable names/loops/ifs accross TT, H::T and possibly Mason would be very
cool and something other languages don't have.

regards,

A.

-- 
Aaron J Trevena - Perl Hacker, Kung Fu Geek, Internet Consultant
AutoDia --- Automatic UML and HTML Specifications from Perl, C++
and Any Datasource with a Handler.     http://droogs.org/autodia

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to