/gradle-htl-plugin

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

Primary LanguageKotlinApache License 2.0Apache-2.0

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