Skip to content

Commit

Permalink
Merge pull request #30 from redgluten/master
Browse files Browse the repository at this point in the history
Add stacks snippets
  • Loading branch information
dev4dev committed Feb 12, 2016
2 parents 45ab1e0 + 136579c commit d5f3ac8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -31,7 +31,9 @@ Or download the snippets zip file and unzip it into your Packages folder.
| secy | @section('`name`') <br /> **{{-- expr --\}\}** <br /> @yield_section |
| yl | @yield('`section`', '`default`') |
| lsec | @section('`name`') <br /> **{{-- expr --\}\}** <br /> @show |
| par | @parent |
| par | @parent |
| stack | @stack('`name`') |
| push | @push('`name`') <br /> **{{-- expr --\}\}** <br /> @endpush |
| !! | {!! $`var` !!} |
| }} | {{ `escaped output` }} |
| inc | @include('`view.name`', `array('some' => 'data')`) |
Expand Down
11 changes: 11 additions & 0 deletions snippets/blade-push.sublime-snippet
@@ -0,0 +1,11 @@
<snippet>
<content><![CDATA[
@push('${1:name}')
${0:{{-- expr --\}\}}
@endpush
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>push</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.blade</scope>
</snippet>
7 changes: 7 additions & 0 deletions snippets/blade-stack.sublime-snippet
@@ -0,0 +1,7 @@
<snippet>
<content><![CDATA[
@stack('${1:view}')$0
]]></content>
<tabTrigger>stack</tabTrigger>
<scope>text.blade</scope>
</snippet>

0 comments on commit d5f3ac8

Please sign in to comment.