Changeset 305
- Timestamp:
- 02/16/08 17:44:14 (5 months ago)
- Files:
-
- trunk/src/ingy/JS/examples/JS-Foo-Bar (moved) (moved from trunk/src/ingy/JS/examples/Foo-Bar)
- trunk/src/ingy/JS/lib/JS.pm (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/ingy/JS/lib/JS.pm
r295 r305 5 5 use 5.005.003; 6 6 7 our $VERSION = '0.1 0';7 our $VERSION = '0.11'; 8 8 9 9 sub new { … … 77 77 Some JavaScript modules can be installed from CPAN. This module comes 78 78 with a utility called C<js-cpan> that helps you find JavaScript modules 79 that have been installed on you system so that you can use them in79 that have been installed on your system so that you can use them in 80 80 various projects. 81 81 … … 90 90 Makefiles to set things up. 91 91 92 The Open JSAN project offers the tip off the iceberg in terms of being a 93 CPAN for JavaScript. However it has a long way to go and not a lot of 94 community to get it there. 92 The Open JSAN project offers the tip off the iceberg in terms of 93 being a CPAN for JavaScript. However it has a long way to go and not 94 a lot of community to get it there. CPAN is a good place to put 95 JavaScript modules. 95 96 96 97 Many projects require JavaScript components these days, and it would be … … 98 99 distributions. 99 100 100 There is a simple way to package non-Perl components into Perl/CPAN101 There is a dead simple way to package non-Perl components into Perl/CPAN 101 102 distributions. The components get installed in your Perl system but do 102 103 not affect Perl in any other way. 103 104 104 JS is a module to explain and help maintain the JavaScript modules105 JS.pm is a module to explain and help maintain the JavaScript modules 105 106 installed from CPAN. 106 107 107 Some module distributions will have both Perl and JavaScript components. 108 Others will have only JavaScript components. All JavaScript modules and 109 JavaScript module distributions should have a top-level-namespace of 'JS'. 108 Some module distributions will have both Perl and JavaScript 109 components. Others will have only JavaScript components. All JavaScript 110 modules and JavaScript-only distributions should have a top-level-namespace 111 of 'JS'. 110 112 111 113 =head1 JS MODULE AUTHOR HOWTO 112 114 113 115 It turns out that Perl's ExtUtils::MakeMaker will install *any* 114 files that you put in the C<lib/> directory, into your perl's115 sitelib. So setting up a JavaScript distribution is very similar to116 files that you put in the C<lib/> directory, into your C<perl>'s 117 C<sitelib>. So setting up a JavaScript distribution is very similar to 116 118 setting on a Perl one. 117 119 … … 146 148 That's it. You've joined the revolution. :) 147 149 148 NOTE: There is a working sample JavaScript module shipped with C<JS.pm>149 in the C<examples/ Foo-Bar> directory.150 NOTE: There is a working example JavaScript module shipped with C<JS.pm> 151 in the C<examples/JS-Foo-Bar> directory. 150 152 151 153 =head1 AUTHOR
