Represents a web asset (image, script, stylesheet, font, etc.).

Asset cannot be found by a mapper.

Audio asset.

Vite entry point asset that carries its CSS imports and JS preloads as dependencies.

Maps asset references to files within a specified local directory.

Web font file.

Asset for file types without a dedicated asset class.

Asset utility functions.

Asset renderable as an HTML element.

Image asset.

Lazy-loading of properties as a workaround for PHP < 8.4.

Resolves asset references to Asset objects for a specific storage backend.

Manages a collection of named asset Mappers and provides a central point for retrieving Assets using qualified references (mapper:reference).

JavaScript file.

CSS stylesheet file.

Video file.

Maps asset references to Vite-generated files using a Vite manifest.json.

Nette DI extension that registers asset mappers and the asset Registry as container services.

Latte extension that provides asset-related functions and tags:

  • asset(): returns asset URL or throws AssetNotFoundException if asset not found
  • tryAsset(): returns asset URL or null if asset not found
  • {asset ...} renders HTML code
  • {preload ...} renders HTML code for preloading
  • n:asset renders HTML attributes

{asset reference [, attributes]} {preload reference [, attributes]} Renders HTML element for asset with automatic versioning.