Index
A
- Asset — Class in namespace Nette\Assets
Base asset interface with minimal API.
- AssetNotFoundException — Class in namespace Nette\Assets
Asset cannot be found by a mapper.
- AudioAsset — Class 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.
- AssetNode — Class in namespace Nette\Bridges\AssetsLatte\Nodes
{asset ...} & {asset? ...} {preload ...}
- $ AssetNode#attributes — Property in class AssetNode
- $ NAssetNode#attributes — Property 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#content — Property in class NAssetNode
- NAssetNode::create() — Method in class NAssetNode
D
- $ AudioAsset#duration — Property in class AudioAsset
Duration in seconds
- DIExtension — Class in namespace Nette\Bridges\AssetsDI
Dependency injection extension that integrates asset management into Nette application.
E
- EntryAsset — Class in namespace Nette\Assets
Entry point asset implementation that can represent both script and style entry points.
F
- $ Asset#file — Property in class Asset
The local file path if available
- FilesystemMapper — Class in namespace Nette\Assets
Maps asset references to files within a specified local directory.
- FontAsset — Class 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.
- GenericAsset — Class 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
- Helpers — Class in namespace Nette\Assets
Static helper class providing utility functions for working with assets.
- HtmlRenderable — Class in namespace Nette\Assets
Interface for assets that can be rendered as HTML elements.
- $ ImageAsset#height — Property in class ImageAsset
I
- ImageAsset — Class in namespace Nette\Assets
Image asset.
L
- LazyLoad — Class in namespace Nette\Assets
Lazy-loading of properties as a workaround for PHP < 8.4.
- DIExtension::loadConfiguration() — Method in class DIExtension
- LatteExtension — Class 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#mimeType — Property in class Asset
The MIME type if available
- $ GenericAsset#mimeType — Property in class GenericAsset
- Mapper — Class in namespace Nette\Assets
Defines the contract for resolving asset references to Asset objects.
N
- $ AssetNode#name — Property in class AssetNode
- NAssetNode — Class in namespace Nette\Bridges\AssetsLatte\Nodes
n:asset and n:tryasset in ,