Skip to content

Commit d5f3ac8

Browse files
committed
Merge pull request #30 from redgluten/master
Add stacks snippets
2 parents 45ab1e0 + 136579c commit d5f3ac8

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ Or download the snippets zip file and unzip it into your Packages folder.
3131
| secy | @section('`name`') <br /> **{{-- expr --\}\}** <br /> @yield_section |
3232
| yl | @yield('`section`', '`default`') |
3333
| lsec | @section('`name`') <br /> **{{-- expr --\}\}** <br /> @show |
34-
| par | @parent |
34+
| par | @parent |
35+
| stack | @stack('`name`') |
36+
| push | @push('`name`') <br /> **{{-- expr --\}\}** <br /> @endpush |
3537
| !! | {!! $`var` !!} |
3638
| }} | {{ `escaped output` }} |
3739
| inc | @include('`view.name`', `array('some' => 'data')`) |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<snippet>
2+
<content><![CDATA[
3+
@push('${1:name}')
4+
${0:{{-- expr --\}\}}
5+
@endpush
6+
]]></content>
7+
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
8+
<tabTrigger>push</tabTrigger>
9+
<!-- Optional: Set a scope to limit where the snippet will trigger -->
10+
<scope>text.blade</scope>
11+
</snippet>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<snippet>
2+
<content><![CDATA[
3+
@stack('${1:view}')$0
4+
]]></content>
5+
<tabTrigger>stack</tabTrigger>
6+
<scope>text.blade</scope>
7+
</snippet>

0 commit comments

Comments
 (0)