Merge branch 'develop' into update_defaults

This commit is contained in:
Michael Teeuw
2021-01-21 15:11:31 +01:00
committed by GitHub
22 changed files with 364 additions and 222 deletions

View File

@@ -114,7 +114,7 @@ var Loader = (function () {
* @param {Function} callback Function called when done.
*/
var loadModule = function (module, callback) {
var url = module.path + "/" + module.file;
var url = module.path + module.file;
var afterLoad = function () {
var moduleObject = Module.create(module.name);

View File

@@ -176,7 +176,7 @@ var Module = Class.extend({
});
this._nunjucksEnvironment.addFilter("translate", function (str, variables) {
return self.translate(str, variables);
return nunjucks.runtime.markSafe(self.translate(str, variables));
});
return this._nunjucksEnvironment;