[ 
https://issues.apache.org/jira/browse/JCRVLT-207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tobias Bocanegra updated JCRVLT-207:
------------------------------------
    Description: 
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}

  was:
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}


> 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)

Reply via email to