Closed tripodsan closed 4 years ago
the use class file reference in data-sly-use is not relative to the .htl file.
data-sly-use
.htl
eg, with a baseDir of myProject:
baseDir
myProject
myProject/ └── src/ ├── html.htl └── helper.js
the following use class can't be loaded:
src/html.htl
<div data-sly-use.help="${'./helper.js'}"></div>
follow the same rule as node with require. i.e. ./ is relative to the source file. with no ./, it will be loaded as node_module. also see #105
./
:tada: This issue has been resolved in version 3.2.8 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Problem
the use class file reference in
data-sly-use
is not relative to the.htl
file.eg, with a
baseDir
ofmyProject
:the following use class can't be loaded:
src/html.htl
Suggest
follow the same rule as node with require. i.e.
./
is relative to the source file. with no./
, it will be loaded as node_module. also see #105