Stencil Template Engine

Stencil Template Engine Runtime

License

License

GroupId

GroupId

com.impossibl.stencil
ArtifactId

ArtifactId

engine
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

Stencil Template Engine
Stencil Template Engine Runtime
Project URL

Project URL

http://impossibl.github.io/stencil/
Project Organization

Project Organization

Impossibl.com

Download engine

How to add to project

<!-- https://jarcasting.com/artifacts/com.impossibl.stencil/engine/ -->
<dependency>
    <groupId>com.impossibl.stencil</groupId>
    <artifactId>engine</artifactId>
    <version>0.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.impossibl.stencil/engine/
implementation 'com.impossibl.stencil:engine:0.0.2'
// https://jarcasting.com/artifacts/com.impossibl.stencil/engine/
implementation ("com.impossibl.stencil:engine:0.0.2")
'com.impossibl.stencil:engine:jar:0.0.2'
<dependency org="com.impossibl.stencil" name="engine" rev="0.0.2">
  <artifact name="engine" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.impossibl.stencil', module='engine', version='0.0.2')
)
libraryDependencies += "com.impossibl.stencil" % "engine" % "0.0.2"
[com.impossibl.stencil/engine "0.0.2"]

Dependencies

compile (7)

Group / Artifact Type Version
com.google.guava : guava jar 14.0.1
org.apache.commons : commons-lang3 jar 3.1
commons-beanutils : commons-beanutils jar 1.8.3
com.thoughtworks.paranamer : paranamer jar 2.5.6
org.antlr : antlr4-runtime jar 4.1
org.apache.logging.log4j : log4j-api jar 2.0-beta9
org.hamcrest : hamcrest-core jar 1.3

test (2)

Group / Artifact Type Version
junit : junit jar 4.11
org.apache.logging.log4j : log4j-core jar 2.0-beta9

Project Modules

There are no modules declared in this project.

stencil

Template engine designed with first class support for layouts and macros with easy passing of text blocks.

Features

  • Syntax - Stencil features a compact syntax that uses a single character ('$') to inctroduce dynamic regions.
  • Blocks - Passing around blocks of text is at the cornerstone of the Stencil language. Block syntax allows the succinct creation and passing of blocks of text to macros and included templates.
  • Macros - Stencil has advanced support for creating macros that accept both parameters and blocks.
  • Layouts - Layout support is built into the heart of Stencil and based on the block passing syntax. It allows fast & easy creation of layouts of unlimited quantity.
  • Functions - Stencil allows the simple creation of functions that execute it's simple expression language.
  • Expression - Advanced expressions that have support for all classical statements like loops and conditions, as well as complex literals like like maps and list, along with advanced operators like elvis and safe-navigation that make simplify template writing.

Versions

Version
0.0.2
0.0.1