Skip to content

Validates HTL templates (HTML Template Language) supported by AEM (Adobe Experience Manager)

License

Notifications You must be signed in to change notification settings

wttech/gradle-htl-plugin

Repository files navigation

WTT logo

Gradle Status Apache License, Version 2.0, January 2004 Travis Build

Gradle HTL Plugin

Gradle equivalent to Apache Sling HTL Maven Plugin.

Compatibility

Tested with Gradle 6.0.0 and above.

Setup

Plugin is released in Gradle Plugin Portal. See notes from there.

Usage

Simply run the task gradlew htlValidate.

Configuration

Sample configuration (shown values are plugin defaults):

htl {
    sourceDir("src/main/content/jcr_root")
    sourceFilter {
        include("**/*.html", "**/*.htl")
        exclude("**/some-subdir/*")
    }
}

tasks {
    htlValidate {
        /*
        failOnWarnings() // or via property: htl.validator.failOnWarnings=true
        printIssues() // or via property: htl.validator.printIssues=true
        enabled = false // or via property: htl.validator.enabled=false
        */
    }
}

Licence

Gradle HTL Plugin is licensed under the Apache License, Version 2.0 (the "License")

About

Validates HTL templates (HTML Template Language) supported by AEM (Adobe Experience Manager)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages