mattkenefick / twigtovue

A Twig to Vue template converter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A Twig to Vue template converter

License:MIT License


Languages

Language:PHP 87.3%Language:Twig 12.2%Language:HTML 0.5%