Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Web App Resource/Asset Bundler ?

by perrin (Chancellor)
on Nov 06, 2007 at 17:37 UTC ( [id://649280]=note: print w/replies, xml ) Need Help??


in reply to Web App Resource/Asset Bundler ?

Usually people use a tarball for this, with the perl code and other stuff in it. What problem are you trying to solve by putting the data into your module instead?

Replies are listed 'Best First'.
Re^2: Web App Resource/Asset Bundler ?
by renodino (Curate) on Nov 06, 2007 at 18:05 UTC
    I'm trying to simplify deployment for standalone web apps, ie, browser based GUI apps. Instead of running under Apache or somesuch, a web app would include its own web server module (eg, HTTP::Server::Simple, HTTP::Daemon, HTTP::Daemon::Threaded, etc.). Assuming the app might eventually be packaged into an exe (via PAR, perl2exe, etc.), or even installed as a std. Perl package, it would be nice to have all the assets handled in the "Perlish" way, wo/ the hassle of trying to figure out the directory structure where the assets reside.

    So if the assets are all rolled into Perl modules, the app can just introspect to get datetime info, and roll HTTP headers as appropriate, doing any decoding/decompressing as needed.


    Perl Contrarian & SQL fanboy
      I think it would be a lot easier to package the whole thing as a tarball or other installer package and use relative paths in your scripts.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-24 22:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found