An open API service indexing awesome lists of open source software.

https://github.com/vladbailescu/sightly-submodules

Convenience project including all HTL implementation bundles as git submodules
https://github.com/vladbailescu/sightly-submodules

apache htl sightly sling

Last synced: about 2 months ago
JSON representation

Convenience project including all HTL implementation bundles as git submodules

Awesome Lists containing this project

README

        

Apache Sling Scripting - HTL implementation
====
*Convenience project including all HTL implementation bundles as git submodules*

[![Build Status](https://travis-ci.org/vladbailescu/sightly-submodules.svg?branch=master)](https://travis-ci.org/vladbailescu/sightly-submodules)

These bundles provide support for the HTL web templating language.

## Contents
1. `compiler` - `org.apache.sling.scripting.sightly.compiler`
The Apache Sling Scripting HTL Compiler provides support for compiling HTML Template Language scripts into an Abstract
Syntax Tree.
2. `java-compiler` - `org.apache.sling.scripting.sightly.compiler.java`
The Apache Sling Scripting HTL Java Compiler provides support for transpiling the Abstract Syntax Tree produced by the
`org.apache.sling.scripting.sightly.compiler` module into Java source code.
3. `engine` - `org.apache.sling.scripting.sightly`
The Apache Sling Scripting HTL Engine is a Java implementation of the HTL specification. The bundle contains the HTL
engine and its plugin framework implementation.
4. `js-use-provider` - `org.apache.sling.scripting.sightly.js.provider`
The Apache Sling HTL JavaScript Use Provider adds support for accessing JS scripts from Sightly's Use-API.
5. `repl` - `org.apache.sling.scripting.sightly.repl`
A simple Read-Eval-Print-Loop environment for testing simple HTL scripts
6. `testing-content` - `org.apache.sling.scripting.sightly.testing-content`
A bundle containing initial content for running integration tests
7. `testing` - `org.apache.sling.scripting.sightly.testing`
The testing project which builds a custom Sling Launchpad on which integration tests are run

## How To

**Build**
```bash
mvn clean install
```

**Test**
```bash
mvn clean verify
```

**Play with HTL REPL**
```bash
cd testing
mvn clean package slingstart:start -Dlaunchpad.keep.running=true -Dhttp.port=8080
```
Then browse to [http://localhost:8080/htl/repl.html](http://localhost:8080/htl/repl.html).