Base asset interface with minimal API.

Asset cannot be found by a mapper.

Audio asset.

Entry point asset implementation that can represent both script and style entry points.

Maps asset references to files within a specified local directory.

Font asset.

Generic asset for any general file type.

Static helper class providing utility functions for working with assets.

Interface for assets that can be rendered as HTML elements.

Image asset.

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

Defines the contract for resolving asset references to Asset objects.

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

Script asset.

Style asset.

Video asset.

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

Dependency injection extension that integrates asset management into Nette application.

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 ...} & {asset? ...} renders HTML code
  • {preload ...} renders HTML code for preloading
  • n:asset renders HTML attributes

{asset ...} & {asset? ...} {preload ...}

n:asset and n:tryasset in ,