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:
Vendored
+2
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user