From 7c52c9265be1a3e3a4183515f4da7e189b321a88 Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Wed, 17 Dec 2014 12:30:54 -0800 Subject: resourceloader: Add template compiler for Mustache JS Compatible library for PHP backend added by I281acc49c1. This adds the frontend compiler. Change-Id: I2190276a629ca882f3f5535e4e73635d2494e944 --- resources/lib/mustache/mustache.js | 578 +++++++++++++++++++++++++++++++++++++ 1 file changed, 578 insertions(+) create mode 100644 resources/lib/mustache/mustache.js (limited to 'resources/lib/mustache/mustache.js') diff --git a/resources/lib/mustache/mustache.js b/resources/lib/mustache/mustache.js new file mode 100644 index 000000000000..dbc982319559 --- /dev/null +++ b/resources/lib/mustache/mustache.js @@ -0,0 +1,578 @@ +/*! + * mustache.js - Logic-less {{mustache}} templates with JavaScript + * http://github.com/janl/mustache.js + */ + +/*global define: false*/ + +(function (global, factory) { + if (typeof exports === "object" && exports) { + factory(exports); // CommonJS + } else if (typeof define === "function" && define.amd) { + define(['exports'], factory); // AMD + } else { + factory(global.Mustache = {}); //