Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #22 from kenhkan/exclude-runtime

Option to exclude runtime
  • Loading branch information...
commit 331155367bfbfcdab451c853de1e0b429c00196f 2 parents b429dc0 + dea0883
@paulmillr paulmillr authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 index.js
View
5 index.js
@@ -19,6 +19,11 @@ function JadeCompiler(cfg) {
var jade = cfg.plugins && cfg.plugins.jade;
var config = (jade && jade.options) || jade;
+ // Allow runtime to be excluded
+ if (config && config.noRuntime) {
+ JadeCompiler.prototype.include = [];
+ }
+
// cloning is mandatory because config is not mutable
this.options = clone(config) || {};
this.options.compileDebug = false;
Please sign in to comment.
Something went wrong with that request. Please try again.