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

v2.4.1 2024-11-23 14:26 UTC

This package is auto-updated.

Last update: 2024-11-23 14:26:48 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>