add browserify (not yet working) and refactor tree nodes to not be dependent on their parent (currently breaks browser build)

This commit is contained in:
Luke Page
2014-02-24 21:22:52 +00:00
parent 208b32aac7
commit 08bd23dc2a
54 changed files with 933 additions and 893 deletions

View File

@@ -8,6 +8,9 @@ module.exports = {
warn: function(env, msg) {
console.warn(msg);
},
encodeBase64: function encodeBase64(env, str) {
return new Buffer(str).toString('base64');
},
getPath: function (env, filename) {
var j = filename.lastIndexOf('/');
if (j < 0) {