Skip to content

Instantly share code, notes, and snippets.

@adamjohnson
Last active January 29, 2021 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamjohnson/8022d3d55ddc8262a55d0ffec89b4ab1 to your computer and use it in GitHub Desktop.
Save adamjohnson/8022d3d55ddc8262a55d0ffec89b4ab1 to your computer and use it in GitHub Desktop.
A collection of Liquid Snippets for CleanSlate CMS + Sublime Text 3.
<snippet>
<!-- Snippet to insert a Liquid comment for CleanSlate. -->
<content><![CDATA[
{% comment %}
${1:}
{% endcomment %}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>lqcomment</tabTrigger>
<description>Liquid Comment</description>
<!-- NOTE: Specifying a source seems to break stuff. 🤷‍♂️ -->
</snippet>
<snippet>
<!-- Snippet to insert a Liquid Editable Region for CleanSlate. -->
<content><![CDATA[
{% editable_region name: "${1:}" %}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>lqer</tabTrigger>
<description>Liquid CleanSlate Editable Region</description>
<!-- NOTE: Specifying a source seems to break stuff. 🤷‍♂️ -->
</snippet>
<snippet>
<!-- Snippet to insert a Liquid Editable Region Block for CleanSlate. -->
<content><![CDATA[
{% editable_region_block name: "${1:}" %}
${2:}
{% endeditable_region_block %}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>lqerblock</tabTrigger>
<description>Liquid CleanSlate Editable Region Block</description>
<!-- NOTE: Specifying a source seems to break stuff. 🤷‍♂️ -->
</snippet>
<snippet>
<!-- Snippet to insert a Liquid object (eg: `{{ example }}`) -->
<content><![CDATA[
{{ ${1:example} }}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>lqobj</tabTrigger>
<!-- Optional: Description to show in the menu -->
<description>Liquid Object: {{ example }}</description>
<!-- NOTE: Specifying a source seems to break stuff. 🤷‍♂️ -->
</snippet>
<snippet>
<!-- Snippet to insert a Liquid partial/render tag. -->
<content><![CDATA[
{% render "${1:example}" %}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>lqpartial</tabTrigger>
<!-- Optional: Description to show in the menu -->
<description>CleanSlate Liquid Partial/Render</description>
<!-- NOTE: Specifying a source seems to break stuff. 🤷‍♂️ -->
</snippet>
<snippet>
<!-- Snippet to insert a Liquid tag. -->
<content><![CDATA[
{% ${1:example} %}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>lqtag</tabTrigger>
<!-- Optional: Description to show in the menu -->
<description>Liquid Tag</description>
<!-- NOTE: Specifying a source seems to break stuff. 🤷‍♂️ -->
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment