How to use the constantinople.toConstant function in constantinople

To help you get started, we’ve selected a few constantinople 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 Hanul / UPPERCASE / __OLD / __OLD_UJS / TUTORIAL / WEB_SITE / Jade / node_modules / jade / lib / compiler.js View on Github external
function toConstant(src) {
  return constantinople.toConstant(src, {jade: runtime, 'jade_interp': undefined});
}
function errorAtNode(node, error) {
github aredotna / ervell / node_modules / jade / lib / parser.js View on Github external
attrs.attrs.forEach(function (attribute) {
        options[attribute.name] = constantinople.toConstant(attribute.val);
      });
    }
github andrewshawcare / thoughtworks-email-signature-generator / node_modules / jade / lib / compiler.js View on Github external
function toConstant(src) {
  return constantinople.toConstant(src, {jade: runtime, 'jade_interp': undefined});
}
function errorAtNode(node, error) {
github aredotna / ervell / node_modules / jade / lib / compiler.js View on Github external
function toConstant(src) {
  return constantinople.toConstant(src, {jade: runtime, 'jade_interp': undefined});
}
function errorAtNode(node, error) {
github cwbuecheler / node-tutorial-2-restful-app / node_modules / jade / lib / compiler.js View on Github external
function toConstant(src) {
  return constantinople.toConstant(src, {jade: runtime, 'jade_interp': undefined});
}
github aikar / timings / node_modules / node-sass / node_modules / mocha / node_modules / jade / lib / compiler.js View on Github external
function toConstant(src) {
  return constantinople.toConstant(src, {jade: runtime, 'jade_interp': undefined});
}
function errorAtNode(node, error) {
github pugjs / pug / lib / compiler.js View on Github external
function toConstant(src) {
  return constantinople.toConstant(src, {jade: runtime, 'jade_interp': undefined});
}
function errorAtNode(node, error) {
github andreirtaylor / BoardGameTracking / node_modules / jade / lib / compiler.js View on Github external
function toConstant(src) {
  return constantinople.toConstant(src, {jade: runtime, 'jade_interp': undefined});
}
function errorAtNode(node, error) {
github livereload / livereload-plugins / Jade.lrplugin / npm / jade-0.35.0 / lib / compiler.js View on Github external
visitAttributes: function(attrs){
    var val = this.attrs(attrs);
    if (val.inherits) {
      this.bufferExpression("jade.attrs(jade.merge({ " + val.buf +
          " }, attributes), jade.merge(" + val.escaped + ", escaped, true))");
    } else if (val.constant) {
      this.buffer(runtime.attrs(toConstant('{' + val.buf + '}'), JSON.parse(val.escaped)));
    } else {
      this.bufferExpression("jade.attrs({ " + val.buf + " }, " + val.escaped + ")");
    }
  },
github andreirtaylor / BoardGameTracking / node_modules / jade / lib / parser.js View on Github external
attrs.attrs.forEach(function (attribute) {
        options[attribute.name] = constantinople.toConstant(attribute.val);
      });
    }

constantinople

Determine whether a JavaScript expression evaluates to a constant

MIT
Latest version published 5 years ago

Package Health Score

73 / 100
Full package analysis

Popular constantinople functions