Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: question on tmpl_include

by Crian (Curate)
on Mar 01, 2004 at 11:51 UTC ( [id://332860]=note: print w/replies, xml ) Need Help??


in reply to question on tmpl_include

I think that depends on your template system. It has to do recursive substitutions (at most two times), to do what you want. Perhaps you could work around this problem by calling the substitution two times?

Replies are listed 'Best First'.
Re^2: question on tmpl_include
by Crian (Curate) on Mar 01, 2004 at 12:15 UTC
    In case the substitution function returns the number of performed substitutions it could be a good idea, to recall it in a loop until it does not substitutes anything more. Doing it that way enables you to use as deep structured template terms as you want (or need) to.
    I am sorry if I missed the possibility to edit my post above, but I am new to the perlmonks and did not find any such button or else.

    Now I now how to change written answers... (thanks to ViceRaid, who told me how).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://332860]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found