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-galleryedicy-gallery.cssedicy-gallery.js
edicy-searchedicy-search.cssedicy-search.js
edicy-toolsedicy-tools.cssedicy-tools.js
voog-ecommerceautogenerated-pages.cssautogenerated-pages.jspayment-methods.cssproducts-widget.cssproducts-widget.jsproducts-widget-modal.jsshopping-cart-v2.cssshopping-cart-v2.jsshopping-cart.cssshopping-cart.jstranslations/{locale}.json
voog-mapsmaps-acceptance-overlay.cssmaps-acceptance-overlay.js
voog-widgetslatest-articles.csssignup-cta.js
In translations/{locale}.json, {locale} is a locale available on the site.