Commit d0411dfb authored by JC Brand's avatar JC Brand

Add settings for mustache-like variable interpolation

parent 7e95d3d0
...@@ -3,6 +3,13 @@ ...@@ -3,6 +3,13 @@
name: "components/almond/almond.js", name: "components/almond/almond.js",
out: "../builds/converse-no-locales-no-otr.min.js", out: "../builds/converse-no-locales-no-otr.min.js",
include: ['main'], include: ['main'],
tpl: {
// Use Mustache style syntax for variable interpolation
templateSettings: {
evaluate : /\{\[([\s\S]+?)\]\}/g,
interpolate : /\{\{([\s\S]+?)\}\}/g
}
},
paths: { paths: {
"jquery": "components/jquery/dist/jquery", "jquery": "components/jquery/dist/jquery",
"jed": "components/jed/jed", "jed": "components/jed/jed",
......
...@@ -3,6 +3,13 @@ ...@@ -3,6 +3,13 @@
name: "components/almond/almond.js", name: "components/almond/almond.js",
out: "../builds/converse-no-otr.min.js", out: "../builds/converse-no-otr.min.js",
include: ['main'], include: ['main'],
tpl: {
// Use Mustache style syntax for variable interpolation
templateSettings: {
evaluate : /\{\[([\s\S]+?)\]\}/g,
interpolate : /\{\{([\s\S]+?)\}\}/g
}
},
paths: { paths: {
"jquery": "components/jquery/dist/jquery", "jquery": "components/jquery/dist/jquery",
"jed": "components/jed/jed", "jed": "components/jed/jed",
......
...@@ -3,6 +3,13 @@ ...@@ -3,6 +3,13 @@
name: "components/almond/almond.js", name: "components/almond/almond.js",
out: "../builds/converse.min.js", out: "../builds/converse.min.js",
include: ['main'], include: ['main'],
tpl: {
// Use Mustache style syntax for variable interpolation
templateSettings: {
evaluate : /\{\[([\s\S]+?)\]\}/g,
interpolate : /\{\{([\s\S]+?)\}\}/g
}
},
paths: { paths: {
"jquery": "components/jquery/dist/jquery", "jquery": "components/jquery/dist/jquery",
"jed": "components/jed/jed", "jed": "components/jed/jed",
...@@ -21,6 +28,7 @@ ...@@ -21,6 +28,7 @@
"pt_BR": "locale/pt_BR/LC_MESSAGES/pt_BR", "pt_BR": "locale/pt_BR/LC_MESSAGES/pt_BR",
"ru": "locale/ru/LC_MESSAGES/ru", "ru": "locale/ru/LC_MESSAGES/ru",
"jquery.tinysort": "components/tinysort/src/jquery.tinysort", "jquery.tinysort": "components/tinysort/src/jquery.tinysort",
"jquery.browser": "components/jquery.browser/dist/jquery.browser",
"underscore": "components/underscore/underscore", "underscore": "components/underscore/underscore",
"backbone": "components/backbone/backbone", "backbone": "components/backbone/backbone",
"backbone.localStorage": "components/backbone.localStorage/backbone.localStorage", "backbone.localStorage": "components/backbone.localStorage/backbone.localStorage",
...@@ -47,7 +55,6 @@ ...@@ -47,7 +55,6 @@
"eventemitter": "components/otr/build/dep/eventemitter", "eventemitter": "components/otr/build/dep/eventemitter",
"otr": "components/otr/build/otr", "otr": "components/otr/build/otr",
"converse-dependencies": "src/deps-full", "converse-dependencies": "src/deps-full",
"jquery.browser": "components/jquery.browser/dist/jquery.browser",
"moment":"components/momentjs/moment", "moment":"components/momentjs/moment",
"converse-templates":"src/templates", "converse-templates":"src/templates",
"tpl": "components/requirejs-tpl-jcbrand/tpl", "tpl": "components/requirejs-tpl-jcbrand/tpl",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment