2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03:00

only add the anyalytics to production

This commit is contained in:
Jacob Thornton
2012-02-01 16:38:58 -08:00
parent 7f32d15fbb
commit 59016d2198
13 changed files with 46 additions and 2 deletions
+2
View File
@@ -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, {