Asset URL
asset_url
variable.For more information, Check Theme File Structure.
<link href="{{ asset_url ~ 'style.css' }}" rel="stylesheet" />
<body>
<div class="app">
<img src="{{ asset_url }}image.png" alt="" />
</div>
<script src="{{ asset_url ~ 'main.js' }}"></script>
</body>
{{ asset_url ~ 'style.css' }}
is a way of linking two strings in Twig.
Modified at 2024-07-28 16:12:31