-
Notifications
You must be signed in to change notification settings - Fork 1
liquid_markups_output
{{variable}} or {{variable.variable_method}}
Example
{{categories['pluusid'].url}}
Should be set into file layout.liquid to render view like index.liquid, product.liquid and so on. {{ content_for_layout }}
{{ "string" | t}} or {{"string" | translate}}
They are equalents and return both the same result. Translation will be taken from files trasltions/lang.json.
Example:
{{ 'frontpage.hero.cta' | t}}
Asset is datatype which is connected to the theme and is fetched by browser separately. For example, stylesheet, javascript or image. Once you set it this way we will handle them dynamically.
{{ "filename" | asset_url }}
Example
{{ 'frontpage-3.jpg' | asset_url | image_tag }}
Is used for fetching favicon. By default it is favicon.ico. If browser fetches this icon and it is not provided we will provide it for you.
{{ "favicon.ico" | asset_url | icon_tag }}
Generates tag.
{{"image.jpg" |image_tag }}
Example:
{{ 'frontpage-3.jpg' | asset_url | image_tag }}
Generates stylesheet tag
{{ "style.css" | stylesheet_tag }}
Example:
{{ "style.css" | asset_url | stylesheet_tag }}
Generates javascript tag
{{ "javascript.js" | javascript_tag }}
Example:
{{ "custom.modernizr.js" | asset_url | javascript_tag }}
{{ price | money}}
Example:
{{ item.total | money }}
{{ "dsdsd ds <>" | escape }}
{{33 |weight_with_unit}}
{{"text" | strip_html}}
{{"big text" | truncate: 2 }}
Is used to set custom buttons for previouts and next pages and is called inside pagination block.Just giving an example:
{{ paginate | default_pagination }}
or
{{ paginate | default_pagination: 'prev:<span class="icon-left"></span>', 'next:<span class="icon-right"></span>' }}
{{locale}} returns current locale
{{ category | link_to_category }} - to category link