Integration of symfony/asset and symfony/web-link for nette

v2.4.0 2024-11-06 19:46 UTC

This package is auto-updated.

Last update: 2024-11-06 19:47:19 UTC


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>