javascript_url

Description

Return the url of a theme asset javascript.

Syntax

{{ <path_to_a_theme_asset> | javascript_url }}

Example

{{ 'application.js' | javascript_url }}

outputs

"/sites/<site_id>/theme/javascripts/application.js"
© 2024 LocomotiveCMS Terms of use Privacy Policy
Back to top