asseturl (alt=None)

This works similar to the url one but can only link to assets from the assets/ folder. However unlike |url it will append a dummy query string with a hash of the source asset. This ensures that when the asset changes it will be newly cached.

Example

<link rel="stylesheet" href="{{ '/static/styles.css'|asseturl }}">

Comments