Closed michalwronowski closed 8 years ago
Given following snippet:
<script data-api-type="templating" data-call-uri="/path/to/service.json" type="text/x-handlebars-template"> <h2>{{header}}</h2> <div>{{body.content}}</div> </script>
the output would be:
<div> <h2>Header value from service</h2> <div>Some body content from service</div> </div>
Surrounding <div> should not be added, because in edge cases page can be rendered/styled incorrectly.
<div>
Expected output:
<h2>Header value from service</h2> <div>Some body content from service</div>
Fixed in https://github.com/Cognifide/knotx/pull/35
Given following snippet:
the output would be:
Surrounding
<div>
should not be added, because in edge cases page can be rendered/styled incorrectly.Expected output: