mattkenefick / twigtovue
将Twig模板转换为Vue模板
dev-master
2022-04-26 12:20 UTC
Requires
- php: >=5.4
- querypath/querypath: ^3.0
Requires (Dev)
- phpunit/phpunit: ~9.0
This package is auto-updated.
Last update: 2024-09-26 17:59:54 UTC
README
安装
$ composer require twigtovue
测试
$ composer test
$ composer test-one
配置
$ composer install
命名空间
{% include 'web/' ~ 'view/film/index/index.twig' with {
films: []
} %}
将独立的包含字符串分离出来以打破Vue类名的命名空间。Twigtovue将使用最后一个字符串,所以上面的例子将查找ViewFilmIndex。
重复名称
重复的名称将自动从包含中移除。在上面的例子中,"index/index.twig"变为ViewFilmIndex
。
许可证
twigtovue © polymer mallard,在ISC许可证下发布。
由polymer mallard编写和维护,并有贡献者的帮助。
polymer mallard · GitHub @mattkenefick · Twitter @mattkenefick