joetannenbaum/antlers-stack-tags
最新稳定版本:0.1.0
Composer 安装命令:
composer require joetannenbaum/antlers-stack-tags
包简介
Provides push, prepend, and stack tags to Antlers templates
README 文档
README
Provides stack tags for Antlers templates in Statamic. Works very similarly to Blade stack directives:
Push a script onto the scripts stack:
{{ push:scripts }}
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js"></script>
{{ /push:scripts }}
Prepend a script onto the scripts stack:
{{ prepend:scripts }}
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js"></script>
{{ /prepend:scripts }}
Push a script onto the scripts stack, but only do it once (similar to Blade once directive):
{{ push:scripts once="true }}
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js"></script>
{{ /push:scripts }}
Output stack:
{{ stack:scripts }}
Stacks can be named anything and you can have as many stacks as you want.
统计信息
- 总下载量: 25.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2021-01-05