Merge branch 'develop' into master

This commit is contained in:
Wolf-Gideon Bleek
2017-10-03 21:29:10 +02:00
committed by GitHub
14 changed files with 7201 additions and 24 deletions

View File

@@ -356,7 +356,7 @@ Module.register("calendar", {
return a.startDate - b.startDate;
});
return events;
return events.slice(0, this.config.maximumEntries);
},
/* createEventList(url)

View File

@@ -0,0 +1,5 @@
<!--
Use ` | safe` to allow html tages within the text string.
https://mozilla.github.io/nunjucks/templating.html#autoescaping
-->
<div>{{text | safe}}</div>

View File

@@ -14,10 +14,11 @@ Module.register("helloworld",{
text: "Hello World!"
},
// Override dom generator.
getDom: function() {
var wrapper = document.createElement("div");
wrapper.innerHTML = this.config.text;
return wrapper;
getTemplate: function () {
return "helloworld.html"
},
getTemplateData: function () {
return this.config
}
});