Permalink
Browse files

added missing helper in precompile

  • Loading branch information...
clarkdave committed Mar 6, 2013
1 parent afc68ff commit 3df166e37d3414d8d1e3b74380ac225f3970abef
Showing with 4 additions and 0 deletions.
  1. +4 −0 examples/express/bin/precompile_assets.js
@@ -17,6 +17,10 @@ if (fs.existsSync('./public/assets')) {
var environment = new Mincer.Environment('./');
+environment.registerHelper('version', function() {
+ return require(__dirname + '/../../../package.json').version;
+});
+
/**
* This minifies Javascript using the UglifyJS2 default compression settings. It also
* preserves certain comments (the same ones as when you call uglifyjs with the --comments

0 comments on commit 3df166e

Please sign in to comment.