Download Time

56K
0s
64K
0s
128K
0s
768K
0s
1.44M
0s

Advertising

  HTML::ScriptLoader 1.01  

HTML::ScriptLoader

Version: 1.01

Perl extension for loading scripts on a web page


Overall Average:

    • Current rating.
 

User Rating:

    • Currently 0/5
 

Visitors Rating:

    • Currently 0/5
 

Read reviews

Download: 100% Safe & Secure

OS Support Linux, Linux Console, Linux Open Sour, Linux Gnome

Share it:
Date added:
19 Feb 2012
Last Update:
23 Mar 2011
License:
Freeware
Size:
0.003 Mb
Hits:
126 visitors
Downloads
8
Publisher

  • Publisher's description
  • Change Log
  • Share Button

HTML::ScriptLoader is a Perl module that handles script loading with dependency support.

The available scripts can be setup in a configuration file and added on runtime. When a script is needed, you call on "add_script", and the script and all its dependencies will be loaded, in order of dependency.

Recursive dependencies are not allowed and will throw an exception.

SYNOPSIS

 use HTML::ScriptLoader;
 my $scripts = HTML::ScriptLoader->new(
 {
 'other-script' => {
 'uri' => 'http://example.com/other-script.js'
 },
 'myscript' => {
 'uri' => '/static/js/myscript.js',
 'deps' => ['other-script'],
 'params' => {
 'apikey' => 'very-secret',
 },
 },
 }
 );

 $scripts->add_script('myscript');

 $ttvars->{'javascripts'} = $scripts->scripts;

 # In your templates (TT)
 
 [% FOREACH js IN javascripts %]
 





  












TAGS:

script loading | Perl module | Perl | script | loading SHARE THIS
TWEET THIS
















HTML code for linking to this page:






Go to top



Related Tags: script loading Perl module Perl script loading


Available Translations:
None
Version History
Version 1.01 added on: 19 Feb 2012



Button for your site
To link back to this page, please copy code below and insert in your page. All visits come thru this code will add a 10 point vote to this software. Save the image button on your server

Example:
Download botton     
HTML,BBCode code for linking to this page:     
LINK     

HTML    

BBCODE

BBCODE with Image button