mattkenefick/twigtovue

Convert Twig templates to Vue templates

dev-master 2022-04-26 12:20 UTC

This package is auto-updated.

Last update: 2024-03-26 16:45:54 UTC


README

TwigToVue

Last version Dependency status Dev Dependencies Status Donate

follow on Twitter

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