Skip to content

Instantly share code, notes, and snippets.

@adamjohnson
Last active January 29, 2021 23:45
Show Gist options
  • Save adamjohnson/8022d3d55ddc8262a55d0ffec89b4ab1 to your computer and use it in GitHub Desktop.
Save adamjohnson/8022d3d55ddc8262a55d0ffec89b4ab1 to your computer and use it in GitHub Desktop.

Revisions

  1. adamjohnson revised this gist Jan 29, 2021. 3 changed files with 3 additions and 3 deletions.
    2 changes: 1 addition & 1 deletion liquid_object.sublime-snippet
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    ]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>lqobj</tabTrigger>
    <!-- NOTE: Specifying a source seems to break stuff. 🤷‍♂️ -->
    <!-- Optional: Description to show in the menu -->
    <description>Liquid Object: {{ example }}</description>
    <!-- NOTE: Specifying a source seems to break stuff. 🤷‍♂️ -->
    </snippet>
    2 changes: 1 addition & 1 deletion liquid_partial.sublime-snippet
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    ]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>lqpartial</tabTrigger>
    <!-- NOTE: Specifying a source seems to break stuff. 🤷‍♂️ -->
    <!-- Optional: Description to show in the menu -->
    <description>CleanSlate Liquid Partial/Render</description>
    <!-- NOTE: Specifying a source seems to break stuff. 🤷‍♂️ -->
    </snippet>
    2 changes: 1 addition & 1 deletion liquid_tag.sublime-snippet
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    ]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>lqtag</tabTrigger>
    <!-- NOTE: Specifying a source seems to break stuff. 🤷‍♂️ -->
    <!-- Optional: Description to show in the menu -->
    <description>Liquid Tag</description>
    <!-- NOTE: Specifying a source seems to break stuff. 🤷‍♂️ -->
    </snippet>
  2. adamjohnson created this gist Jan 29, 2021.
    12 changes: 12 additions & 0 deletions liquid_comment.sublime-snippet
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    <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>
    10 changes: 10 additions & 0 deletions liquid_editable_region.sublime-snippet
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    <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>
    12 changes: 12 additions & 0 deletions liquid_editable_region_block.sublime-snippet
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    <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>
    10 changes: 10 additions & 0 deletions liquid_link_javascript.sublime-snippet
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    <snippet>
    <!-- Snippet to insert a Liquid Link JavaScript tag for CleanSlate. -->
    <content><![CDATA[
    {% link_javascript name: "${1:}" %}
    ]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>lqjs</tabTrigger>
    <description>Liquid CleanSlate Link JavaScript</description>
    <!-- NOTE: Specifying a source seems to break stuff. 🤷‍♂️ -->
    </snippet>
    11 changes: 11 additions & 0 deletions liquid_object.sublime-snippet
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    <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>
    <!-- NOTE: Specifying a source seems to break stuff. 🤷‍♂️ -->
    <!-- Optional: Description to show in the menu -->
    <description>Liquid Object: {{ example }}</description>
    </snippet>
    11 changes: 11 additions & 0 deletions liquid_partial.sublime-snippet
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    <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>
    <!-- NOTE: Specifying a source seems to break stuff. 🤷‍♂️ -->
    <!-- Optional: Description to show in the menu -->
    <description>CleanSlate Liquid Partial/Render</description>
    </snippet>
    11 changes: 11 additions & 0 deletions liquid_tag.sublime-snippet
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    <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>
    <!-- NOTE: Specifying a source seems to break stuff. 🤷‍♂️ -->
    <!-- Optional: Description to show in the menu -->
    <description>Liquid Tag</description>
    </snippet>