Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-10T18:19:02.000Z (over 3 years ago)
- Last Synced: 2023-03-12T05:02:12.316Z (almost 2 years ago)
- Topics: aem, gradle-aem-plugin, htl, sling
- Language: Kotlin
- Homepage:
- Size: 260 KB
- Stars: 2
- Watchers: 12
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![WTT logo](docs/wtt-logo.png)
[![Gradle Status](https://gradleupdate.appspot.com/Cognifide/gradle-htl-plugin/status.svg?random=123)](https://gradleupdate.appspot.com/Cognifide/gradle-htl-plugin/status)
[![Apache License, Version 2.0, January 2004](docs/apache-license-badge.svg)](http://www.apache.org/licenses/)
![Travis Build](https://travis-ci.org/Cognifide/gradle-htl-plugin.svg?branch=master)# 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)