Templar : a not so complicate Template Engine.
  • Java 94%
  • HTML 6%
Find a file
2026-06-24 01:45:06 +09:00
.vscode The First Templar 2026-06-24 00:57:54 +09:00
gradle The First Templar 2026-06-24 00:57:54 +09:00
template-engine published 2026-06-24 01:20:34 +09:00
.gitattributes The First Templar 2026-06-24 00:57:54 +09:00
.gitignore The First Templar 2026-06-24 00:57:54 +09:00
AGENTS.md The First Templar 2026-06-24 00:57:54 +09:00
footer.html The First Templar 2026-06-24 00:57:54 +09:00
gradle.properties The First Templar 2026-06-24 00:57:54 +09:00
gradlew The First Templar 2026-06-24 00:57:54 +09:00
gradlew.bat The First Templar 2026-06-24 00:57:54 +09:00
layout.html The First Templar 2026-06-24 00:57:54 +09:00
LICENSE The First Templar 2026-06-24 00:57:54 +09:00
README.md add a hero image 2026-06-24 01:45:06 +09:00
settings.gradle.kts published 2026-06-24 01:20:34 +09:00
templar.png add a hero image 2026-06-24 01:45:06 +09:00
template_sample.html The First Templar 2026-06-24 00:57:54 +09:00

Templar

The not so complicate Template Engine

Templar

기능

사용 예시

TemplateEngine templar = TemplateEngine
                .create(TemplateLoader.of(TemplarTest.class, "/templates/layout.html"));
Template template = templar.compile("layout.html");
String out = template.render(context);

템플릿 문법

변수 값

{{user.name}}

조건

<templar if="">
    <p>Something...</p>
</templar>
<templar unless="">
    <p>Something...</p>
</templar>

반복

<templar for="users" each="user">
    <p>{{user.name}}</p>
</templar>

인클루드

<templar include="footer.html" />

코멘트

<templar comment="blah, blah, .." />

Copyright © 2026 Elex. All Rights Reserved.