[
https://issues.apache.org/jira/browse/JCRVLT-207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16182134#comment-16182134
]
Tobias Bocanegra commented on JCRVLT-207:
-----------------------------------------
while it is possible to process the HTL script in the vault plugin, I think
it's better if the HTL plugin takes care of this.
the current version of the HTL plugin doesn't even fail, if a use class is not
specified as dependency. as a second step, it could generate either a usage
report, that could be used by the vault plugin, or simpler, create the compiled
HTL classes (similar to the JSPC plugin).
[~radu.cotescu] [~rombert] WDYT?
> 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}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)