The HTML::Template::Filter::Dreamweaver code does exactly what you are
looking for.

-----Original Message-----
From: Karen J. Cravens [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 1:31 PM
To: Lance A. Brown
Subject: Re: [htmltmpl] Re: H::T future


On Tue, 9 Dec 2003, Lance A. Brown wrote:

LAB>Here is the relevant piece of code.  Personally, I think this is a 
LAB>VERY tasty hack.  It lets page designers plug parameters back into 
LAB>the templating system for use elsewhere.  Very cool.

Nifty, but not exactly what I was looking for; I was thinking more along the
lines of a few lines at the beginning of the file (a la Twiki) with the
parameters, and the rest being a standard H::T template.  Then you just call
the micro-config-reader bit *if* you need it, and when it's done with its
bit at the beginning, it calls H::T for the rest.

That way, you gain the ability to have parms and template in the same file
for convenience' sake, but you don't have to parse every single template in
case it has parms (which might even pose a security risk, if you're letting
users make skins using H::T).

You'd probably want to config bit at the beginning of the file to be
enclosed in comment delimiters just in case you wanted to be able to call
H::T on the entire file.  Of course, that'd leave the params visible in the
finished product, which might itself be a security breach, so at a certain
point you have to decide to separate the config from the user content.

-- 
Karen J. Cravens  [EMAIL PROTECTED]



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Html-template-users mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to