@daytona/lds-engine
Advanced tools
+8
-1
@@ -127,4 +127,11 @@ var objectDeepMap = require('./lib/object-deep-map'); | ||
| } | ||
| var template = layout ? layout.template.replace(/{{{@body}}}/, viewTemplate) : viewTemplate; | ||
| var template; | ||
| var bodyToken = options.bodyToken || '{{{@body}}}'; | ||
| if (layout && layout.template.indexOf(bodyToken) !== -1) { | ||
| template = layout.template.replace(new RegExp(bodyToken), viewTemplate); | ||
| } else { | ||
| template = viewTemplate; | ||
| } | ||
| var html = options.render(template, pageData); | ||
@@ -131,0 +138,0 @@ |
+1
-1
| { | ||
| "name": "@daytona/lds-engine", | ||
| "version": "0.4.1", | ||
| "version": "0.4.2", | ||
| "description": "Templating engine for LDS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
7364
3.05%177
3.51%