Skip to content

mattkenefick/twigtovue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published