Inline Asset Content
The content of a file in the assets directory of a theme is printed.
liquid
{{ 'file name' | inline_asset_content }}Only .svg, .js and .css files smaller than 15 KB are printed. For any other file, and for a file that is not found, nothing is printed.
Example
liquid
{{ 'icon-arrow.svg' | inline_asset_content }}Output
html
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 10"><path d="M8.5 0 14 5l-5.5 5-1-1L11.3 5.7H0V4.3h11.3L7.5 1z"/></svg>