mattkenefick / twigtovue
Convert Twig templates to Vue templates
Installs: 1 346
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 1
Requires
- php: >=5.4
- querypath/querypath: ^3.0
Requires (Dev)
- phpunit/phpunit: ~9.0
This package is auto-updated.
Last update: 2025-03-26 18:57:21 UTC
README
Install
$ composer require twigtovue
Test
$ composer test
$ composer test-one
Configure
$ composer install
Namespacing
{% include 'web/' ~ 'view/film/index/index.twig' with {
films: []
} %}
Separate include strings to break out namespacing of Vue class name. TwigToVue will use the last string, so the example above will look for ViewFilmIndex.
Duplicate Names
Duplicate names are automatically stripped from includes. In the
above example, "index/index.twig" becomes ViewFilmIndex
.
License
twigtovue © polymer mallard, released under the ISC License.
Authored and maintained by Polymer Mallard with help from contributors.
polymer mallard · GitHub @mattkenefick · Twitter @mattkenefick