Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: A modern Perl repalcement for Apache Server Side Includes?

by moritz (Cardinal)
on Feb 10, 2013 at 17:57 UTC ( [id://1018065]=note: print w/replies, xml ) Need Help??


in reply to A modern Perl repalcement for Apache Server Side Includes?

If SSI are enough, stick to SSI.

However for my stuff I didn't quite like SSI, and I wrote my own generator for static websites, which has some features that make nested menus (and opening those that lead to the current page) easier.

I don't think it's worth using a framework like Mojolicious or Dancer for static pages.

  • Comment on Re: A modern Perl repalcement for Apache Server Side Includes?

Replies are listed 'Best First'.
Re^2: A modern Perl repalcement for Apache Server Side Includes?
by skx (Parson) on Feb 10, 2013 at 23:35 UTC

    I took wrote my own static-site generator, using HTML::Template, called Templer. It allows plugins for handling breadcrumbs, etc, but largely gets out of the way.

    It had never occurred to me to upload such an application to CPAN, but having seen yours I think that might be a plan.

    Steve
    --
Re^2: A modern Perl repalcement for Apache Server Side Includes?
by punch_card_don (Curate) on Feb 11, 2013 at 15:10 UTC
    You know, I'm leaning towards not fixing what's not broken. It might not be hip or sexy, but for this application SSI has much to recommend it.

    • Zero learning curve
    • already installed, ready to go, proven, stable
    • No more resource hungry than a templating system
    • While it does use resources each page serve, this is a low-traffic site on a private server that won't even notice the minor load
    • Although it is static, the content and the nav bar do change from time to time. An off-line generator would mean having to re-generate the entire website each time any page was updated, adding steps of complexity in a a situation where pages may be edited by multiple authors who have limited web skills to being with. Or I have to develop an interface for that function too. Whereas with SSI, edit the file directly once, and that's it, done.
    • same for the nav bar, which changes occasionally;



    Time flies like an arrow. Fruit flies like a banana.

Log In?
Username:
Password:

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

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

    No recent polls found