Skip to content

Commit

Permalink
Add new Blade snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksamson committed Oct 16, 2017
1 parent 633c8e9 commit 7d1f51b
Show file tree
Hide file tree
Showing 8 changed files with 86 additions and 0 deletions.
10 changes: 10 additions & 0 deletions snippets/Blade/Blade-auth.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[
@auth(${1:'optional guard'})
${2:content}
@endauth
]]></content>
<tabTrigger>Blade::auth</tabTrigger>
<scope>text.blade</scope>
<description>Blade @auth</description>
</snippet>
10 changes: 10 additions & 0 deletions snippets/Blade/Blade-component.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[
@component('${1:alert}')
${2:content}
@endcomponent
]]></content>
<tabTrigger>Blade::component</tabTrigger>
<scope>text.blade</scope>
<description>Blade @component</description>
</snippet>
10 changes: 10 additions & 0 deletions snippets/Blade/Blade-empty.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[
@empty('${1:\$records}')
${2:content}
@endempty
]]></content>
<tabTrigger>Blade::empty</tabTrigger>
<scope>text.blade</scope>
<description>Blade @empty</description>
</snippet>
10 changes: 10 additions & 0 deletions snippets/Blade/Blade-guest.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[
@guest(${1:'optional guard'})
${2:content}
@endguest
]]></content>
<tabTrigger>Blade::guest</tabTrigger>
<scope>text.blade</scope>
<description>Blade @guest</description>
</snippet>
10 changes: 10 additions & 0 deletions snippets/Blade/Blade-isset.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[
@isset('${1:\$records}')
${2:content}
@endisset
]]></content>
<tabTrigger>Blade::isset</tabTrigger>
<scope>text.blade</scope>
<description>Blade @isset</description>
</snippet>
10 changes: 10 additions & 0 deletions snippets/Blade/Blade-slot.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[
@slot('${1:title}')
${2:content}
@endslot
]]></content>
<tabTrigger>Blade::slot</tabTrigger>
<scope>text.blade</scope>
<description>Blade @slot</description>
</snippet>
15 changes: 15 additions & 0 deletions snippets/Blade/Blade-switch.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<snippet>
<content><![CDATA[
@switch('${1:\$value}')
@case(${2:'case1'})
${3:First case...}
@break;
${4:@default
Default case...}
@endswitch
]]></content>
<tabTrigger>Blade::switch</tabTrigger>
<scope>text.blade</scope>
<description>Blade @switch</description>
</snippet>
11 changes: 11 additions & 0 deletions snippets/Blade/Blade-verbatim.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

<snippet>
<content><![CDATA[
@verbatim
${1:content}
@endverbatim
]]></content>
<tabTrigger>Blade::verbatim</tabTrigger>
<scope>text.blade</scope>
<description>Blade @verbatim</description>
</snippet>

0 comments on commit 7d1f51b

Please sign in to comment.