
jsclasses-integrator
Introduction
RIA JsClasses Integrator. JavaScript fast team development solutions for all popular frameworks. Main ideas of this package * Using MooTools Classes (as exemple JavaScript Class building) * Using Zend Framework like style coding * Using JsDoc for JavaScript class documenting (tag @requires for JS class linking) * Prebuilding all class to one Js-file * The resulting file rebuild and he changed the name, if changes were made in at least one of the classes (or dependent classes), requesting your php-script * Using JSMin JavaScript optimization * Using gzip packer for result file compressing
Links
I apologize to the English-speaking audience. Documentation for the English will be written later. See comments in a JsClasses.php and working example.
Example of site engine integration
In your php-script insert: ``` require ('../libs/JsClasses.php');
$jsClasses = new JsClasses(); $jsClasses->setClassesPath('../js'); $jsClasses->setClassesCacheFile('../cache/jsClasses.cache'); $jsClasses->make(array('Ria_JsonRequest_Test')); $classesResultJsFileName = $jsClasses->getJsFileName(); ```
In your site template insert:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Simple JsClasses Integration on PHP Site Engine</title>
<script type="text/javascript" src="js/mootools-1.2-core-nc.js"></script>
<script type="text/javascript" src="<?php echo $classesResultJsFileName ?>"></script>
</head>
History
Version 1.3.1 - Date 24/05/2010
- Added multiple beckends support via memcached
- Added JQuery edition example
- Upgrade Mootools to version 1.2.4
- Rewrite rules examples for nginx
Version 1.2 - Date 21/04/2009
- Added JsClasses style CSS Optimizer (based on Minify 2.1.2)
- Added BlueprintCSS 8.0
- Upgrade Mootools to version 1.2.1
- Optimized .htaccess
- Some cosmetic changes.
Version 1.1 - Date 06/10/2008
- Added method 'setJsRewriteFileName', which allows you to specify the name of the resulting packaged files which formed a special RewriteRule. This feature allows you to build several packaged files. For example: the core and block plug-ins. Such a division may be needed if some of the scripts are changing very rapidly and some hardly changed.
- Some cosmetic changes.
- Changed default directory 'js/pack' for the resultant packaged file.
- Removed method 'cleanCacheDir', because the new version no need to clean up cache.
Version 1.0 - Date 14/09/2008
- Initial release of RIA JavaScript Classes Integrator.
Project Information
- License: GNU Lesser GPL
- 3 stars
- svn-based source control
Labels:
javascript
javascriptclasses
mootools
JsDoc
javascriptintegrator
javascriptfastdevelopment
php
memcached
jquery