Edit on GitHub
Jump to docs navigation

Twig Components / Methods / asset_version

Note: You are currently reading the documentation for Bolt 5.0. Looking for the documentation for Bolt 5.2 instead?

asset_version(path, packageName = null)

type: string | null default: null

asset version is a Twig function that returns the current version of the package, more information in Linking to CSS, JavaScript and Image Assets.

Source: Twig



Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.