marko 5.31.10 → 5.31.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,6 +20,10 @@ module.exports = function defineRenderer(renderingLogic) {
20
20
  template = req(template);
21
21
  }
22
22
 
23
+ if (template && template.default) {
24
+ template = template.default;
25
+ }
26
+
23
27
  if (!renderer) {
24
28
  var getInitialProps;
25
29
  var getTemplateData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "5.31.10",
3
+ "version": "5.31.11",
4
4
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
5
5
  "keywords": [
6
6
  "front-end",
@@ -20,6 +20,10 @@ module.exports = function defineRenderer(renderingLogic) {
20
20
  template = req(template);
21
21
  }
22
22
 
23
+ if (template && template.default) {
24
+ template = template.default;
25
+ }
26
+
23
27
  if (!renderer) {
24
28
  var getInitialProps;
25
29
  var getTemplateData;