Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
if a htl script references a use class, it should be included as import package dependency. eg:
<!doctype html> <html lang=“en-US”> <head> <meta http-equiv=“Content-Type” content=“text/html; charset=utf-8”> <title>Default Page Title</title> <body> <div class=“joke” data-sly-use.jokeModel=“org.adapto.core.models.JokeModel”> <h1>${jokeModel.caption}</h1> <p>${jokeModel.joke}</p> </div> </body> </html>
using the HTL plugin to validate:
<plugin> <groupId>org.apache.sling</groupId> <artifactId>htl-maven-plugin</artifactId> <version>1.0.9-SNAPSHOT</version> <executions> <execution> <goals> <goal>validate</goal> </goals> </execution> </executions> </plugin>
Attachments
Issue Links
- is blocked by
-
SLING-7155 htl-maven-plugin: Add option to precompile the HTL scripts
- Closed