PatternBuilder / pattern-kit

A REST server for your Component API based Design System
20 stars 10 forks source link

Replace PHP backend with pure JS #23

Open jchristi opened 6 years ago

jchristi commented 6 years ago

The only part that was unique to PHP was twig, but there is a pure-js implementation of twig now: https://github.com/twigjs/twig.js. The REST server could easily be accomplished with Express or equivalent. A pure JS implementation would remove the dependency on PHP.

castastrophe commented 6 years ago

Unfortunately TwigJS has really poor Twig PHP support.

From https://github.com/twigjs/twig.js/wiki:

Twig.js is currently a work in progress and supports a limited subset of the Twig templating language (with more coming).

jchristi commented 6 years ago

https://github.com/twigjs/twig.js/wiki/Implementation-Notes

61/67 features are supported