Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Alternate template syntax for HTML::Template?

by skx (Parson)
on Oct 02, 2005 at 10:51 UTC ( [id://496737]=note: print w/replies, xml ) Need Help??


in reply to Re: Alternate template syntax for HTML::Template?
in thread Alternate template syntax for HTML::Template?

Note that HTML::Template::Compiled isn't 100% compatible with HTML::Template.

For example the following snippet of code shows errors:

<tmpl_if name="title"> <title><!-- tmpl_var name="title" --></title> <tmpl_else> <title><!-- tmpl_var name='site_slogan' --></title> </tmpl_if>

The error given references the second line:

'TMPL_ELSE' does not match opening tag (if) at templates/index.templat +e line 2
Steve
--

Replies are listed 'Best First'.
Re^3: Alternate template syntax for HTML::Template?
by tinita (Parson) on Oct 02, 2005 at 11:28 UTC
    Note that HTML::Template::Compiled isn't 100% compatible with HTML::Template.

    For example the following snippet of code shows errors:

    thanks for pointing that out.
    i would still call it quite compatible (although not 100%, you're right), the above is just a bug. i'll try to repair it.

    update: fixed it, will be available soon on sourceforge.

      Wow - fast support!

      I first noticed this a few months ago, and forgot about it. Just testing my site today after being reminded of the modules existance was enough to see the problem again.

      I guess I've learned a good lesson today: I should report bugs when I first spot them instead of just dropping the modules!

      Steve
      --

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://496737]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-19 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found