From d6b77077250737ee5ecae9b512c9fed00fdd50c5 Mon Sep 17 00:00:00 2001 From: Rocky Duan Date: Mon, 30 Jul 2012 18:19:04 -0400 Subject: [PATCH] refactored reply rendering by using mustache --- common/static/js/vendor/mustache.js | 613 ++++++++++++++++++ lms/static/coffee/src/discussion.coffee | 53 +- lms/static/sass/_discussion.scss | 4 +- .../discussion/_js_dependencies.html | 1 + 4 files changed, 638 insertions(+), 33 deletions(-) create mode 100644 common/static/js/vendor/mustache.js diff --git a/common/static/js/vendor/mustache.js b/common/static/js/vendor/mustache.js new file mode 100644 index 0000000000..aab62f9ddc --- /dev/null +++ b/common/static/js/vendor/mustache.js @@ -0,0 +1,613 @@ +/*! + * mustache.js - Logic-less {{mustache}} templates with JavaScript + * http://github.com/janl/mustache.js + */ + +var Mustache; + +(function (exports) { + if (typeof module !== "undefined") { + module.exports = exports; // CommonJS + } else if (typeof define === "function") { + define(exports); // AMD + } else { + Mustache = exports; // +