Download the PHP package nanjingboy/assetloader without Composer
On this page you can find all versions of the php package nanjingboy/assetloader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nanjingboy/assetloader
More information about nanjingboy/assetloader
Files in nanjingboy/assetloader
Download nanjingboy/assetloader
More information about nanjingboy/assetloader
Files in nanjingboy/assetloader
Vendor nanjingboy
Package assetloader
Short Description A simple tool to load javascript & css files
License MIT
Homepage https://github.com/nanjingboy/assetloader
Package assetloader
Short Description A simple tool to load javascript & css files
License MIT
Homepage https://github.com/nanjingboy/assetloader
Please rate this library. Is it a good library?
Informations about the package assetloader
AssetLoader:
AssetLoader is a simple library to load javascript & css files.
Getting Started:
-
Create composer.json file in root directory of your application:
-
Install it via composer
-
Create directory in root directory of your application:
- Init the config in your bootstrap.php:
Usage:
We can use the require or require_dir directive to load the dependencies, there are the formats for this directive below:
-
CoffeeScript:
-
JavaScript, Scss, Less:
-
JavaScript, Css, Scss, Less(single line):
- JavaScript, Css, Scss, Less(multi line):
Notes:
- The require comments must on the top in a asset file.
- The dependency's path is relative with the root directory path of your javascripts or stylesheets.
- The require_dir directive auto load all files in this directory without recursive.
- It's just used to parse the load paths for asset's dependencies, it can't compile any files(e.g. a coffeeScript file).
Example:
Get a example from test
License:
MIT
All versions of assetloader with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package nanjingboy/assetloader contains the following files
Loading the files please wait ....