To get around that problem, we use a filter that translates virtual
includes into tmpl_includes. This way the includes work with or without
running them through a perl app. The filter is:
sub filter {
$text_ref = shift;
${$text_ref} =~ s/<!--\s*#include
virtual="[\/]?(.+?)"\s*-->/<TMPL_INCLUDE NAME="$1">/ig;
}
On Mon, 2004-11-22 at 15:45, Kasturirangan Rangaswamy wrote:
> Jason,
>
> Thanks a lot. Actually, I had tried that first (forgot to include
> in my post).
>
> Anyway, I think I have solved the problem. Being the novice that I
> am, I had forgotten that I need to access any .tmpl page through a .pl
> script to make use of any <TMPL_> tags.
>
> I was trying to directly open the .tmpl file on my browser and
> that was causing the <TMPL_INCLUDE> to not work.
>
> Thanks,
> Sharad
>
> --- Jason Purdy <[EMAIL PROTECTED]> wrote:
>
> > Kasturirangan Rangaswamy wrote:
> >
> > > Index.tmpl
> > >
> >
> -----------------------------------------------------------------------
> > > <TMPL_INCLUDE top_screen.tmpl>
> >
> > I think the problem is this line ... try this instead:
> >
> > <TMPL_INCLUDE NAME="top_screen.tmpl">
> >
> > Cheers,
> >
> > Jason
> >
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Meet the all-new My Yahoo! - Try it today!
> http://my.yahoo.com
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Html-template-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/html-template-users
--
Keith Jackson <[EMAIL PROTECTED]>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users