From 90f93aa7e3b3de6262d2251fa7937e81c9a5715b Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Tue, 18 May 2010 14:43:25 +0200 Subject: [PATCH] fix rake commonjs --- mustache-commonjs/mustache.js.tpl.post | 7 +++++++ mustache-commonjs/mustache.js.tpl.pre | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 mustache-commonjs/mustache.js.tpl.post create mode 100644 mustache-commonjs/mustache.js.tpl.pre diff --git a/mustache-commonjs/mustache.js.tpl.post b/mustache-commonjs/mustache.js.tpl.post new file mode 100644 index 0000000..885803f --- /dev/null +++ b/mustache-commonjs/mustache.js.tpl.post @@ -0,0 +1,7 @@ + +exports.name = Mustache.name; +exports.version = Mustache.version; + +exports.to_html = function() { + return Mustache.to_html.apply(this, arguments); +}; diff --git a/mustache-commonjs/mustache.js.tpl.pre b/mustache-commonjs/mustache.js.tpl.pre new file mode 100644 index 0000000..5e33b34 --- /dev/null +++ b/mustache-commonjs/mustache.js.tpl.pre @@ -0,0 +1,6 @@ +/* + * CommonJS-compatible mustache.js module + * + * See http://github.com/janl/mustache.js for more info. + */ +