A

AssetClass in namespace Nette\Assets

Base asset interface with minimal API.

AssetNotFoundExceptionClass in namespace Nette\Assets

Asset cannot be found by a mapper.

AudioAssetClass in namespace Nette\Assets

Audio asset.

FilesystemMapper::applyVersion() — Method in class FilesystemMapper
Registry::addMapper() — Method in class Registry

Registers a new asset mapper under a specific identifier.

AssetNodeClass in namespace Nette\Bridges\AssetsLatte\Nodes

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

$ AssetNode#attributesProperty in class AssetNode
$ NAssetNode#attributesProperty in class NAssetNode

B

DIExtension::beforeCompile() — Method in class DIExtension

C

Helpers::createAssetFromUrl() — Method in class Helpers
Helpers::checkOptions() — Method in class Helpers

Validates an array of options against allowed optional and required keys.

AssetNode::create() — Method in class AssetNode
$ NAssetNode#contentProperty in class NAssetNode
NAssetNode::create() — Method in class NAssetNode

D

$ AudioAsset#durationProperty in class AudioAsset

Duration in seconds

DIExtensionClass in namespace Nette\Bridges\AssetsDI

Dependency injection extension that integrates asset management into Nette application.

E

EntryAssetClass in namespace Nette\Assets

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

F

$ Asset#fileProperty in class Asset

The local file path if available

FilesystemMapperClass in namespace Nette\Assets

Maps asset references to files within a specified local directory.

FontAssetClass in namespace Nette\Assets

Font asset.

NAssetNode::findUsedAttributes() — Method in class NAssetNode

G

AudioAsset::getImportElement() — Method in class AudioAsset

Returns HTML tag name and attributes for rendering the asset.

AudioAsset::getPreloadElement() — Method in class AudioAsset

Returns HTML tag name and attributes for preloading the asset.

FilesystemMapper::getAsset() — Method in class FilesystemMapper

Resolves a relative reference to an asset within the configured base path.

FilesystemMapper::getBaseUrl() — Method in class FilesystemMapper

Returns the base URL for this mapper.

FilesystemMapper::getBasePath() — Method in class FilesystemMapper

Returns the base path for this mapper.

FontAsset::getImportElement() — Method in class FontAsset

Returns HTML tag name and attributes for rendering the asset.

FontAsset::getPreloadElement() — Method in class FontAsset

Returns HTML tag name and attributes for preloading the asset.

GenericAssetClass in namespace Nette\Assets

Generic asset for any general file type.

Helpers::guessMimeTypeFromExtension() — Method in class Helpers
Helpers::guessMP3Duration() — Method in class Helpers

Estimates the duration (in seconds) of an MP3 file, assuming constant bitrate (CBR).

HtmlRenderable::getImportElement() — Method in class HtmlRenderable

Returns HTML tag name and attributes for rendering the asset.

HtmlRenderable::getPreloadElement() — Method in class HtmlRenderable

Returns HTML tag name and attributes for preloading the asset.

ImageAsset::getImportElement() — Method in class ImageAsset

Returns HTML tag name and attributes for rendering the asset.

ImageAsset::getPreloadElement() — Method in class ImageAsset

Returns HTML tag name and attributes for preloading the asset.

Mapper::getAsset() — Method in class Mapper

Retrieves an Asset instance for a given mapper-specific reference string.

Registry::getMapper() — Method in class Registry

Retrieves a registered asset mapper by its identifier.

Registry::getAsset() — Method in class Registry

Retrieves an Asset instance using a qualified reference. Accepts either 'mapper:reference' or ['mapper', 'reference'].

ScriptAsset::getImportElement() — Method in class ScriptAsset

Returns HTML tag name and attributes for rendering the asset.

ScriptAsset::getPreloadElement() — Method in class ScriptAsset

Returns HTML tag name and attributes for preloading the asset.

StyleAsset::getImportElement() — Method in class StyleAsset

Returns HTML tag name and attributes for rendering the asset.

StyleAsset::getPreloadElement() — Method in class StyleAsset

Returns HTML tag name and attributes for preloading the asset.

VideoAsset::getImportElement() — Method in class VideoAsset

Returns HTML tag name and attributes for rendering the asset.

VideoAsset::getPreloadElement() — Method in class VideoAsset

Returns HTML tag name and attributes for preloading the asset.

ViteMapper::getAsset() — Method in class ViteMapper

Retrieves an Asset for a given Vite entry point.

ViteMapper::getBaseUrl() — Method in class ViteMapper

Returns the base URL for this mapper.

ViteMapper::getBasePath() — Method in class ViteMapper

Returns the base path for this mapper.

DIExtension::getConfigSchema() — Method in class DIExtension
LatteExtension::getTags() — Method in class LatteExtension
LatteExtension::getFunctions() — Method in class LatteExtension
LatteExtension::getProviders() — Method in class LatteExtension
AssetNode::getIterator() — Method in class AssetNode
NAssetNode::getIterator() — Method in class NAssetNode

H

HelpersClass in namespace Nette\Assets

Static helper class providing utility functions for working with assets.

HtmlRenderableClass in namespace Nette\Assets

Interface for assets that can be rendered as HTML elements.

$ ImageAsset#heightProperty in class ImageAsset

I

ImageAssetClass in namespace Nette\Assets

Image asset.

L

LazyLoadClass in namespace Nette\Assets

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

DIExtension::loadConfiguration() — Method in class DIExtension
LatteExtensionClass in namespace Nette\Bridges\AssetsLatte

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

M

$ Asset#mimeTypeProperty in class Asset

The MIME type if available

$ GenericAsset#mimeTypeProperty in class GenericAsset
MapperClass in namespace Nette\Assets

Defines the contract for resolving asset references to Asset objects.

N

$ AssetNode#nameProperty in class AssetNode
NAssetNodeClass in namespace Nette\Bridges\AssetsLatte\Nodes

n:asset and n:tryasset in ,