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

LAB>Here is the relevant piece of code.  Personally, I think this is a VERY
LAB>tasty hack.  It lets page designers plug parameters back into the
LAB>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

Reply via email to