Download the PHP package carrooi/assets without Composer
On this page you can find all versions of the php package carrooi/assets. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package assets
Carrooi/Assets
Simple modular assets system for Nette framework.
Installation
Then just enable nette extension in your config.neon:
Configuration
Now we've got one namespace front
with two resources css
and js
. You can create as many namespaces or resources as you want with any names.
Each resource needs its compiler, paths to compile and target built file with public path.
- Compiler: Currently just
css
orjs
. It can be also name of custom compiler class - Paths: Names of files, directories or configurations for nette/finder
- Target: Path in file system to result file
- PublicPath: Path to built file accessible from browser
Usage
That will combine all our registered css files into one and add it to your template via our component.
Filters
This file filter on compiler will prepend author's name before each compiled file.
Or there are also filters for final built files.
This filter will add "Built with Carrooi/Assets" text to the beginning of target file.
Add paths
CompilerExtension
Your compiler extensions can also implement \Carrooi\Assets\DI\IAssetsProvider
interface for some additional
configuration.
Changelog
-
1.0.0
- First version
-
1.0.1
- IAssetsProvider::getAssetsFiles() renamed to ::getAssetsConfiguration() [BC Break]
- 1.0.2
- Optimized dependencies
- Removed unused exceptions
- Optimized checking for files' modifications
All versions of assets with dependencies
nette/di Version ~2.2
nette/finder Version ~2.2
nette/application Version ~2.2
carrooi/helpers Version ~1.0