How to use the velocityjs.Jsonify function in velocityjs

To help you get started, we’ve selected a few velocityjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shepherdwind / plum / hooks / webx / webx.js View on Github external
jsonify: function(vm){

    var vmLayout = this._getLayoutString();
    vm = vmLayout.replace(/\$screen_placeholder/, vm);
    vm = this.globalMacros + vm;

    var context = {
      control: this.tools.control
    };

    var asts = Velocity.Parser.parse(vm);
    var jsonify = new Velocity.Jsonify(asts, context);
    return (jsonify.toVTL());

  },

velocityjs

Velocity Template Language(VTL) for JavaScript

MIT
Latest version published 3 years ago

Package Health Score

56 / 100
Full package analysis