mirror of https://gitee.com/bigwinds/arangodb
19 lines
442 B
JavaScript
19 lines
442 B
JavaScript
/*jslint indent: 2, nomen: true, maxlen: 100, white: true plusplus: true, browser: true*/
|
|
/*global EJS*/
|
|
|
|
(function() {
|
|
"use strict";
|
|
var FakeTE = function() {
|
|
var prefix = "base/frontend/js/templates/",
|
|
exports = {};
|
|
exports.createTemplate = function(path) {
|
|
var param = {
|
|
url: prefix + path
|
|
};
|
|
return new EJS(param);
|
|
};
|
|
return exports;
|
|
};
|
|
window.templateEngine = new FakeTE();
|
|
}());
|