Voog.com

static_asset_url

Generates a URL for an asset in one of Voog CMS's static libraries, such as voog-ecommerce or edicy-search.

<link rel="stylesheet" href="{% static_asset_url lib="voog-ecommerce" file="autogenerated-pages.css" %}">
#=> <link rel="stylesheet" href="//static.voog.com/libs/voog-ecommerce/1.13.1/autogenerated-pages.css">

The generated URL includes the site's current static asset version. In development, the tag uses the asset pipeline path instead.

Attributes

  • lib
    • Static library name. Required.
  • file
    • File path within the library. Required.

Available assets

Use one of the following file values with its corresponding lib.

  • edicy-gallery
    • edicy-gallery.css
    • edicy-gallery.js
  • edicy-search
    • edicy-search.css
    • edicy-search.js
  • edicy-tools
    • edicy-tools.css
    • edicy-tools.js
  • voog-ecommerce
    • autogenerated-pages.css
    • autogenerated-pages.js
    • payment-methods.css
    • products-widget.css
    • products-widget.js
    • products-widget-modal.js
    • shopping-cart-v2.css
    • shopping-cart-v2.js
    • shopping-cart.css
    • shopping-cart.js
    • translations/{locale}.json
  • voog-maps
    • maps-acceptance-overlay.css
    • maps-acceptance-overlay.js
  • voog-widgets
    • latest-articles.css
    • signup-cta.js

In translations/{locale}.json, {locale} is a locale available on the site.