Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-207

make auto-import package a analyzer work with htl scripts

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              tripod Tobias Bocanegra
              tripod Tobias Bocanegra
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: