Looking for a port of Nunjucks or any other of Jijna2 like tempting system implementation what compiles the templates into the Duktape vm/byte code (ECMAscript engine).

More precisely, not exactly must be Jinja2, any templating engine is OK what allows/has:

  • template inheritance
  • sandboxed execution mode
  • includes
  • user-defined methods (blocks)
  • unicode suport
  • open-source (ofc) :)

e.g. the Jinja2 is ideal, just the templates should be compiled not only to Javascript (similarly as Nunjucks does) but into Duktape bytecode for sandboxed execution. Duktape allows byte code execution regardless of the host environment, unfortunately the Nunjucks is for the node.js.

In short - the ideal solution would be a variant of the Nunjucks what compiles into Duktape's byte code.

Motivation: having one such engine, could allow its easy port into any Duktape/host environments, like

what could finally solve the true cross-platform, sandboxed, template-engine problem. ;)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.