Download the PHP package h4kuna/assets without Composer
On this page you can find all versions of the php package h4kuna/assets. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download h4kuna/assets
More information about h4kuna/assets
Files in h4kuna/assets
Package assets
Short Description Support mtime for assets on development machine.
License MIT
Homepage https://github.com/h4kuna/assets
Informations about the package assets
Abandoned
try 68publishers/asset
If you need the browser to automatically invalid it's cache, use this extension.
Install via composer:
Changelog
- 1.1.0 nothing required, update nette 3.0
- 1.0.0 supports PHP 7.1+ (strict types)
- 0.1.4 0.1.5 newer versions support PHP of version 5.6 and higher
- 0.1.3 supports PHP 5.3
How to use
For first step you only need to register the extension, other parameters are optional. You have available the new filter asset automatically.
Advantages:
- $basePath is not needed
- path is relative to your wwwDir
- cache is built when new file found, or if you remove %tempDir%/cache/_assets
- behavior is the same in production and development environment
Example output:
?file mtime
.
Printing absolute path to the template can be anabled using double slash:
Assets
Here is an object that can have dependency anything and collect css and js files for render to template.
render this
Custom cache builder - advanced usege
This creates the cache in the compile time. By default, assets cache is build on the fly:
Use prepared interface:
All versions of assets with dependencies
nette/application Version ^3.0
nette/bootstrap Version ^3.0
nette/safe Version ^0.9
nette/utils Version ^3.0