Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: automatic Template component wrapper

by marvell (Pilgrim)
on Mar 10, 2006 at 19:58 UTC ( [id://535800]=note: print w/replies, xml ) Need Help??


in reply to Re: automatic Template component wrapper
in thread automatic Template component wrapper

It's not the web pages, or whole templates I'm interested in, it's the components, ie. the bits included. For example:

thing.tt: I am thing.
thang.tt: I am thang.
fred.tt: % INCLUDE thing.tt % % INCLUDE thang.tt %

I ultimately want this from processing fred

<! -- begin fred.tt --> <! -- begin thing.tt --> I am thing. <! -- end thing.tt --> <! -- begin thang.tt --> I am thang. <! -- end thang.tt --> <! -- end fred.tt -->

In this way, my designer can see which template components have been used to create a specific page

component is a special variable which is automatically set for each included component. The reason I said I had to pass it through is that it is set to the wrapper name if I don't pass it through from the component I want the information for.

--
Steve Marvell

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-24 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found