From: Sven Joerns <Sven.J<oerns@lh...> - 2002-12-19 14:22:19
>In the template we have :
><input type="text" name="test" value="<TMPL_VAR name="test">">
>and we "replace it with the $template->param(test => $test)
>Our problem is that when $test='here is "daddy"';
>the result is :
><input type="text" name="test" value="here is "daddy"">
>which is bad html, and result in a field containing "here is" ("daddy"
>So, how could we solve this ?
Try to change the text >"daddy"< in >\" daddy\"<
From: paul POULAIN <paul.poulain@fr...> - 2002-12-19 14:34:57
Andrew Brosnan a écrit:
>from the docs:
>'use the "ESCAPE=HTML" option in the tag to indicate that you want the
ok, ok, i got at least 7 answers.
Nice to have so many helps :-)
Maybe it could be an idea to auto-put reply-to to the list, as most of
the answer i got where private mail :-)
Consultant indépendant en logiciels libres
responsable francophone de koha (SIGB libre http://fr.koha.org)
I have a set of XML files that I read often. These files are stored in the
file system (and will remain so in all likelihood) and accessed by modules
running (in most cases) under a Perl accelerator like mod_perl or PerlEx.
I am considering loading them using HTML::Template to take advantage of the
caching features of HTML::Template. These files contain no variables to
substitute, and would output the text of the files into an XML parser.
Has anyone used HTML::Template as a general caching system for XML or text
files? Is their a compelling reason not to?
Thank you in advance,
Lead Web Application Developer
O'NEIL & ASSOCIATES, INC.
495 Byers Rd.
Miamisburg, Ohio 45342-3662
Phone: (937) 865-0800 ext. 3038
Fax: (937) 865-5858
From: Sam Tregar <sam@tr...> - 2002-12-20 07:21:55
On Thu, 19 Dec 2002, Cory Trese wrote:
> Has anyone used HTML::Template as a general caching system for XML or text
> files? Is their a compelling reason not to?
No, and I wouldn't recommend it. HTML::Template contains thousands of
lines of Perl code that would go to waste if used as a "only" caching
For mod_perl, all you need to do is load the files into memory on startup
in a global hash. Then the memory will be accessible from, and shared
between, all Apache children. If you need something more complicated,
there are other ways to do it: DB_File, Cache::Cache (slowish),
Cache::Mmap (weird, make sure you read the docs carefully), File::Cache,