Import Handlebars compiler and dependencies

Storing these in Git seems kind of weird, but seems to be [1] the done thing.
I have to say, it's a lot more appealing than getting 3 packages from npm
installed globally on every prod and dev machine -- we already have too much of
that with 'pip install'.

We can upgrade these in the future by running 'npm update' in the repo root
directory.

[1] http://www.futurealoof.com/posts/nodemodules-in-git.html

(imported from commit 60a9d6a7cafe742442d87e9f3abc25750e179780)
This commit is contained in:
Keegan McAllister
2013-02-16 05:01:51 -05:00
parent c375de29ad
commit 9b9d85eb36
166 changed files with 43549 additions and 0 deletions

32
node_modules/handlebars/lib/handlebars.js generated vendored Normal file
View File

@@ -0,0 +1,32 @@
var handlebars = require("./handlebars/base"),
// Each of these augment the Handlebars object. No need to setup here.
// (This is done to easily share code between commonjs and browse envs)
utils = require("./handlebars/utils"),
compiler = require("./handlebars/compiler"),
runtime = require("./handlebars/runtime");
var create = function() {
var hb = handlebars.create();
utils.attach(hb);
compiler.attach(hb);
runtime.attach(hb);
return hb;
};
var Handlebars = create();
Handlebars.create = create;
module.exports = Handlebars; // instantiate an instance
// BEGIN(BROWSER)
// END(BROWSER)
// USAGE:
// var handlebars = require('handlebars');
// var singleton = handlebars.Handlebars,
// local = handlebars.create();