Closed jantimon closed 4 years ago
we might be able to support .htl
script includes (but not JSP includes :-).
There are 2 possible approaches to implement this plugin:
Right now my team is using only data-sly-use
.
However @CodeByAlex told me that he had that issue and asked me to investigate wether it is because of the webpack loader
Probably it would be better to do 2 however if we can get the information about static resolvable scripts we could already preload templates during compile time (similar to resources)
:tada: This issue has been resolved in version 6.2.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
It looks like there is no out of the box support for
data-sly-include
as there is no include plugin:https://github.com/adobe/htlengine/blob/20263b1ea0a1f9ed30e101c0bb789b985941213c/src/parser/html/MarkupHandler.js#L41-L54
Spec: https://docs.adobe.com/content/help/en/experience-manager-htl/using/htl/block-statements.html#include
Demo:
Result:
Is there any way to declare a plugin at compile time? Is there any way to declare a plugin at runtime?