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

v2.3.2 2023-09-12 15:07 UTC

This package is auto-updated.

Last update: 2024-04-12 16:25:50 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>