Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Yet Another Templating System

by perrin (Chancellor)
on Apr 28, 2006 at 17:21 UTC ( [id://546321]=note: print w/replies, xml ) Need Help??


in reply to Yet Another Templating System

Write your own. Write 12 of them. Post some code here and get some feedback. You'll learn a lot. Just don't put it on CPAN. There are over 100 templating modules there already, and several of them are very good.

Incidentally, how did writing your own allow you to "create an application that didn't rely on additonal modules"? Isn't your code a module?

Replies are listed 'Best First'.
Re^2: Yet Another Templating System
by ruzam (Curate) on Apr 28, 2006 at 19:15 UTC
    By relying on additional modules I meant relying on modules outside of my application (or at the very least the standard Perl modules without resorting to installing new ones). Of course that argument would fly out the window if I submitted to CPAN :)

    Thanks everyone for your comments!

    I'm pretty sure CPAN isn't ready for YATS at the moment.
      Assuming that licensing is not an issue, you can just bundle and deliver the "outside" modules as part of your application.

      If licensing is issue, you could probably easily deploy the select group of CPAN modules you want to use as distinct and differently-licensed bundle of software.

      See also: A Vision for Easy Web Application Deployment for Perl

        Wow! You hit the nail on the head there (and apparently opened a can of worms too! Better you than me).

        That's pretty much where I'm heading. Self install Perl web apps that you simply place in your CGI directory, click and go. PHP'rs do it all the time. The code is bundled up with the CGI install script, which gets neatly extracted into the correct directories based on the running CGI env and help from the user. I see no reason why Perl can't do the same, provided you're not tied down to installing 3rd party modules in places the user doesn't have access to (or at the very least the self install could check for required modules and inform the user of what's missing).

        BikeNomad had the right idea with the Self-extracting Perl archives code he posted (although I'm not sure why he felt the need to encode it).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-26 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found