# \[ANN\] OteraEngine.jl(Template Engine for Julia) version 0.2

**URL:** <https://discourse.julialang.org/t/ann-oteraengine-jl-template-engine-for-julia-version-0-2/98356>\
**Category:** Package Announcements\
**Tags:** web\
**Created:** [May 5, 2023, 1:22am UTC](https://discourse.julialang.org/t/ann-oteraengine-jl-template-engine-for-julia-version-0-2/98356 "2023-05-05T01:22:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![QGMW22](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/qgmw22/32/30765_2.png) [@QGMW22](https://discourse.julialang.org/u/QGMW22)\
**Post date:** [May 5, 2023, 1:22am UTC](https://discourse.julialang.org/t/ann-oteraengine-jl-template-engine-for-julia-version-0-2/98356/1 "2023-05-05T01:22:49Z")

</div>

# Template Engine for Julia

OteraEngine.jl is a template engine for Julia. I added new syntax like Jinja2 and this package got more useful!  
Here is an example:

```julia-auto
<html>
    <head><title>MyPage</title></head>
    <body>
        {% set name = "watasu" %}
        {% if name=="watasu" %}
        your name is {{ name }}, right?
        {% end %}
        {% for i in 1 : 5 %}
        Hello {{i}}
        {% end %}
        {% with age = 15 %}
        and your age is {{ age }}.
        {% end %}
    </body>
</html>

```

the output of this template is:

```julia-auto
#HTML Template File
<html>
    <head><title>MyPage</title></head>
    <body>
        your name is watasu, right?
        Hello 1
        Hello 2
        Hello 3
        Hello 4
        Hello 5
        and your age is 15.
        </body>
</html>

```

Of course, this package can be used not only for HTML but also for e-mails and documents. Please try using! [docs](https://mommawatasu.github.io/OteraEngine.jl/stable/)
