2017 © Pedro Peláez
 

library kt_twig-js

twig.js, flexible, secure, and high-performance templating engine for Javascript

image

mi-la01/kt_twig-js

twig.js, flexible, secure, and high-performance templating engine for Javascript

  • Monday, August 22, 2016
  • by MI-LA01
  • Repository
  • 1 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 5 % Grown

The README.md

kt_Twig.js

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., (*1)

mi-la01tag, (*2)

Twig Compatibility

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., (*3)

Supported Filters

  • capitalize
  • default
  • e
  • escape
  • first
  • join
  • keys
  • length
  • lower
  • nl2br
  • replace
  • upper
  • url_encode

Supported Functions

  • block
  • include
  • range

Incompatibilities

The 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., (*4)

Unsupported Filters

  • abs
  • batch
  • convert_encoding
  • date
  • date_modify
  • format
  • json_encode
  • last
  • number_format
  • merge
  • upper
  • raw
  • reverse
  • round
  • slice
  • sort
  • split
  • striptags
  • title
  • trim
  • url_encode

Unsupported Functions

  • attribute
  • constant
  • cycle
  • date
  • dump
  • max
  • min
  • parent
  • random
  • range
  • source
  • template_from_string

License

Twig.js is released under the Apache License, Version 2.0., (*5)

The Versions

22/08 2016

dev-feature/UPGRADE

dev-feature/UPGRADE

twig.js, flexible, secure, and high-performance templating engine for Javascript

  Sources   Download

Apache2

The Requires

 

The Development Requires

templating

22/08 2016

dev-master

9999999-dev

twig.js, flexible, secure, and high-performance templating engine for Javascript

  Sources   Download

Apache2

The Requires

 

The Development Requires

templating

22/08 2016

dev-dev

dev-dev

twig.js, flexible, secure, and high-performance templating engine for Javascript

  Sources   Download

Apache2

The Requires

 

The Development Requires

templating

05/07 2015

1.0

1.0.0.0

twig.js, flexible, secure, and high-performance templating engine for Javascript

  Sources   Download

Apache2

The Requires

 

The Development Requires

templating