in reply to Re: PHP to PERL ?
in thread PHP to PERL ?

For dynamic includes HTML::Template::Compiled is better than HTML::Template.

Replies are listed 'Best First'.
Re^3: PHP to PERL ?
by vek (Prior) on Dec 28, 2005 at 08:21 UTC

    Just to clarify, your definition of 'better' in this example is probably defined as 'faster'. Note that the author of HTML::Template::Compiled Tina Mueller mentioned on the mod_perl mailing list that she wouldn't advise using H::T::C in production.

    Not to worry though because if speed is your goal, you might want to have a peek at HTML::Template::JIT instead. It's stable and has a decent test suite.

    -- vek --
      Just to clarify, your definition of 'better' in this example is probably defined as 'faster'.
      I guess reneeb was referring to the dynamic include feature of HTC, which HTML::Template doesn't have: <tmpl_include_var name="parameter_which_contains_filename">
      Note that the author of HTML::Template::Compiled Tina Mueller mentioned on the mod_perl mailing list that she wouldn't advise using H::T::C in production.
      sure, but this advice wasn't meant for eternity =)

        but this advice wasn't meant for eternity =)

        Understood. I just hadn't seen a follow-up post anywhere (at least not on the mod_perl or HTML::Template mailing lists anyway).

        -- vek --