A template engine for the JVM, based on the Angular component architecture.
ngoy == Template + JVM + Angular
enjoy ngoy!
Ngoy.renderString("hello {{name}}", Context.of("name", "world"), System.out);
// hello world
@Component(selector = "app", template = "hello {{ name | uppercase }}")
public class App {
public String name = "world";
public static void main(String[] args) {
Ngoy.app(App.class)
.build()
.render(System.out);
}
}
// hello WORLD
Visit the ngoy website.
Clone ngoy-starter-web to get started.
Run the complete Tour of Heroes tutorial rewrite using ngoy.
Checkout the examples collection.
More ready-to-use modules.
You can download the ngoy binaries from here or via jitpack.io:
build.gradle
:
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation("com.github.krizzdewizz:ngoy:1.0.0-rc8")
}
pom.xml
:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.krizzdewizz</groupId>
<artifactId>ngoy</artifactId>
<version>1.0.0-rc8</version>
</dependency>
We would love to hear your feedback! Please file an issue here.
gradle clean buildAll