https://github.com/wttech/gradle-htl-plugin
Validates HTL templates (HTML Template Language) supported by AEM (Adobe Experience Manager)
https://github.com/wttech/gradle-htl-plugin
aem gradle-aem-plugin htl sling
Last synced: 10 months ago
JSON representation
Validates HTL templates (HTML Template Language) supported by AEM (Adobe Experience Manager)
- Host: GitHub
- URL: https://github.com/wttech/gradle-htl-plugin
- Owner: wttech
- License: apache-2.0
- Created: 2019-02-15T10:05:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-10T18:19:02.000Z (almost 5 years ago)
- Last Synced: 2025-05-29T01:22:03.390Z (10 months ago)
- Topics: aem, gradle-aem-plugin, htl, sling
- Language: Kotlin
- Homepage:
- Size: 260 KB
- Stars: 2
- Watchers: 11
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://gradleupdate.appspot.com/Cognifide/gradle-htl-plugin/status)
[](http://www.apache.org/licenses/)

# Gradle HTL Plugin
Gradle equivalent to [Apache Sling HTL Maven Plugin](https://github.com/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](https://plugins.gradle.org/plugin/com.cognifide.htl).
## Usage
Simply run the task `gradlew htlValidate`.
# Configuration
Sample configuration (shown values are plugin defaults):
```kotlin
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")](https://www.apache.org/licenses/LICENSE-2.0.txt)