> > is there anyway to get template::toolkit to parse the hash recursively?
> 
> See the section on views.
> http://www.template-toolkit.org/docs/default/Manual/Views.html

In addition to views you can recursively INCLUDE blocks, eg:

[% BLOCK recurse;
    FOREACH obj = data;
        "$obj.objName has $obj.objChild.size children\n";
        INCLUDE recurse data=obj.objChild;
    END;
   END;
%]

See http://www.template-toolkit.org/pipermail/templates/2001-April/000850.html
for a complete example.

Criag


Reply via email to