Re: Dynamic metal includes?

"Simon McCaughey" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.petal
Message-ID <00c801c5263e$97e34910$f5f8a52f@AtticPC>
Re: [Petal] Dynamic metal includes?> > I have tried out the include stuff 
recently talked about on this list,
> > but I don't think it does exactly what I want.
> Hi Simon,
> Look in the archives for December '04 for the thread about dynamic
> i ncludes. There is some code there which will help you to achieve what
> you want.
> Eventually, I'd like to make this part of Petal::Utils. If you'd like to
> wrap that up into a module for inclusion in Petal::Utils, I'd be glad to
> accept it. I just haven't had time to do it myself.

William,

Thanks, I got it to do exactly what I wanted, I didn't realise that you 
could use the Petal::Hash::Include module to include metal macros (I should 
have just tried it)

<div tal:content="structure include: ${extra_content}" />

I would like to help you out by wrapping it up, can you give me some 
pointers on what needs done?

IMHO this is the biggest thing that petal is missing. The only other thing I 
would like to see would be a method for printing debug errors at the bottom 
of the webpage

<pre tal:content="global_errors"/>

Which would turn into
<pre>
<!-- text formatted errors here -->
</pre>


Regards

Simon
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.