diff options
author | Jacob Thornton <jacobthornton@gmail.com> | 2012-02-02 04:38:58 +0400 |
---|---|---|
committer | Jacob Thornton <jacobthornton@gmail.com> | 2012-02-02 04:38:58 +0400 |
commit | 59016d2198d18904a02f122601dc828663c506b6 (patch) | |
tree | 70c79250a51869d4ce52f8c6dcb4f4164f35943c /docs/build | |
parent | 7f32d15fbb096fdf3146997f10cc91dbbd4589fc (diff) |
only add the anyalytics to production
Diffstat (limited to 'docs/build')
-rw-r--r-- | docs/build/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/build/index.js b/docs/build/index.js index 4c759c6e0b..5321fa7504 100644 --- a/docs/build/index.js +++ b/docs/build/index.js @@ -1,6 +1,7 @@ #!/usr/bin/env node var hogan = require('hogan.js') , fs = require('fs') + , prod = process.argv[2] == 'production' var layout, pages @@ -21,6 +22,7 @@ pages.forEach(function (name) { context[name.replace(/\.mustache$/, '')] = 'active' context._i = true + context.production = prod page = hogan.compile(page, { sectionTags: [{o:'_i', c:'i'}] }) page = layout.render(context, { |