webchemistry / asset
Integration of symfony/asset and symfony/web-link for nette
Installs: 2 777
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=8.1
- symfony/asset: ~5.0 || ~6.0
Requires (Dev)
- latte/latte: ^3.0
- nette/application: ^3.1
- nette/di: ^3.0
- symfony/http-client: ^6.1
README
Description
Integration of symfony/asset for nette
Installation
composer require webchemistry/asset
extensions: asset: WebChemistry\Asset\DI\AssetExtension
Assets
asset: packages: # first is default default: @WebChemistry\Asset\Package\BasePathPackageFactory::create()
Usage in latte
{asset app.css} {asset app.css, 'default'}
<img n:asset="app.jpg"> <link rel="stylesheet" n:asset="app.css"> <script n:asset="app.js"></script>