javascript_tag

Description

Build the link tag of a theme stylesheet.

Syntax

{{ <path_to_a_theme_asset_or_url> | javascript_tag }}

Example

{{ 'application.js' | javascript_tag }}

outputs

<script src="/sites/<site_id>javascripts/application.js" type="text/javascript"></script>
© 2024 LocomotiveCMS Terms of use Privacy Policy
Back to top