[
] Build Status
[
] Scrutinizer Code Quality
Twig.js is a PHP project that compiles Twig templates into executable Javascript for client-side execution. It is not to be confused with Twig.js, which is a pure Javascript implementation of the Twig templating language.
Compatibility with vanilla PHP Twig is not yet at 100%. If you need your templates to work with both Twig.js and Twig, stick to the supported filters and functions described below.
absbatchcapitalizedefaulteescapefirstjoinjson_encodekeyslastlengthlowermergenl2brrawreplacereversetitletrimupperurl_encodeblockincludemaxminrandomrangeThe following is a list of functionality present in Twig that is not yet available in Twig.js. There are some really easy pickings in these lists for anybody hoping to make a contribution to the project.
convert_encodingdate (See pull request #11)date_modifyformatnumber_formatroundslicesortsplitstriptagsattributeconstantcycledate (See pull request #11)dumpparentsourcetemplate_from_stringTo run the tests, you'll need Composer, Node and NPM on your system.
$ make test
Twig.js is released under the Apache License, Version 2.0.
How can I help you explore Laravel packages today?