[
https://issues.apache.org/jira/browse/JCRVLT-207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16182278#comment-16182278
]
Radu Cotescu commented on JCRVLT-207:
-------------------------------------
What is the HTL plugin?
> make auto-import package a analyzer work with htl scripts
> ----------------------------------------------------------
>
> Key: JCRVLT-207
> URL: https://issues.apache.org/jira/browse/JCRVLT-207
> Project: Jackrabbit FileVault
> Issue Type: Improvement
> Components: package maven plugin
> Reporter: Tobias Bocanegra
> Assignee: Tobias Bocanegra
>
> if a htl script references a use class, it should be included as import
> package dependency. eg:
> {code}
> <!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>
> {code}
> using the HTL plugin to validate:
> {noformat}
> <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>
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)