[Templates] Two things ..
robin szemeti
robin@rszemeti.demon.co.uk
Sat, 14 Sep 2002 12:54:57 +0100
Firstly ... (htis has probably been asked before)
is it just me or is Apache::Template broken for vhosts? .. I keep getting
random teplates from other vhosts used to process files on other vhosts ..
and secondly ...
the [% META title='something' %] tag
in the examples you show it used in a
PRE_PROCESS=header.tt2
POST_PROCESS=footer.tt2
scheme .. and template.title is available to header etc.
fairy nuff .. except ...
my basic setup is more like
PRE_PROCESS=config # a file defining all the colours, widths blah
PROCESS=main.tt2 # a html 'wrapper' around the content
and then set the param { file => blah.tt2 } in the handler
and a [% PROCESS $file %] tag in main.tt2 (with various conditionals
depending on authentication etc )
the META stuff doesnt work as obviously the content template hasnt been
processed ... can you suggest any other cunning ways to get an appropriate
title from the content back out into the wrapper main.tt2 ?
--
Robin Szemeti