• while on the topic of html and perl: templaters?

    From Eli the Bearded@21:1/5 to All on Mon Sep 26 18:25:39 2022
    I haven't looked recently, but last time I did look (for bloxsom blog templating), I did't really like the state of HTML template engines in
    Perl. (Doesn't actally need to be HTML specific, and probably better if
    not.) What are people using these days? Something better than mere
    substitution with conditionals and loops?

    Python's Jinja is good, for example.

    https://en.wikipedia.org/wiki/Jinja_(template_engine)#Example

    Elijah
    ------
    bloxsom doesn't do loops or conditionals well

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eli the Bearded@21:1/5 to hasm@example.invalid on Tue Sep 27 01:03:24 2022
    In comp.lang.perl.misc, HASM <hasm@example.invalid> wrote:
    I haven't looked recently, but last time I did look (for bloxsom blog
    templating), I did't really like the state of HTML template engines in
    Perl.
    Whenever I look Dancer2 and Catalyst are the ones that come up.

    Maybe it's just my poor way of asking the question, but those are not templatimg tools, even if they may include templaters. Those are "web application frameworks", kinda like getting a semi and a trailer when
    you want a handtruck.

    You wouldn't use either to produce a static report from cronjob unless desperate or using it already. And it's not something that will play
    nice with a polyglot site using Perl, PHP, and Ruby already.

    So that's why I wouldn't like those.

    Maybe just Template module would be good. But I'm kinda interested in
    the war stories of people who have used them. "Nice on paper, but full
    of subtle bugs" or "Great, but only for a limited range of tasks" or
    "Perfect, no complaints, would use again" or "Nice but needlessly
    verbose".

    Elijah
    ------
    thinks mentioning bloxsom might have been the wrong footing

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From HASM@21:1/5 to All on Mon Sep 26 17:15:20 2022
    I haven't looked recently, but last time I did look (for bloxsom blog templating), I did't really like the state of HTML template engines in
    Perl.

    Whenever I look Dancer2 and Catalyst are the ones that come up.

    -- HASM

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From E. Choroba@21:1/5 to Eli the Bearded on Mon Sep 26 23:18:30 2022
    On Tuesday, September 27, 2022 at 3:03:30 AM UTC+2, Eli the Bearded wrote:
    In comp.lang.perl.misc, HASM <ha...@example.invalid> wrote:
    I haven't looked recently, but last time I did look (for bloxsom blog
    templating), I did't really like the state of HTML template engines in
    Perl.
    Whenever I look Dancer2 and Catalyst are the ones that come up.
    Maybe it's just my poor way of asking the question, but those are not templatimg tools, even if they may include templaters. Those are "web application frameworks", kinda like getting a semi and a trailer when
    you want a handtruck.

    You wouldn't use either to produce a static report from cronjob unless desperate or using it already. And it's not something that will play
    nice with a polyglot site using Perl, PHP, and Ruby already.

    So that's why I wouldn't like those.

    Maybe just Template module would be good. But I'm kinda interested in
    the war stories of people who have used them. "Nice on paper, but full
    of subtle bugs" or "Great, but only for a limited range of tasks" or "Perfect, no complaints, would use again" or "Nice but needlessly
    verbose".

    Elijah
    ------
    thinks mentioning bloxsom might have been the wrong footing

    Template::Toolkit is good, Text::Xslate is a bit more advanced and more performant.

    Ch.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Randal L. Schwartz@21:1/5 to All on Thu Sep 29 09:28:45 2022
    "E" == E Choroba <choroba@matfyz.cz> writes:

    Template::Toolkit is good, Text::Xslate is a bit more advanced and more performant.

    Template Toolkit has made me and my clients a lot of money over the years.

    --
    Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Perl/Dart/Flutter consulting, Technical writing, Comedy, etc. etc.
    Still trying to think of something clever for the fourth line of this .sig

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eli the Bearded@21:1/5 to Randal L. Schwartz on Fri Sep 30 22:05:41 2022
    In comp.lang.perl.misc, Randal L. Schwartz <merlyn@stonehenge.com> wrote:
    Template Toolkit has made me and my clients a lot of money over
    the years.

    That sounds like a good endorsement.

    Elijah
    ------
    unless it's because of consulting work to resolve bugs :^)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)