Closed edyu closed 1 year ago
if you can make ``` ``` to work instead of {% %} that's fine but whatever works it needs to support this.
I made this package for my small project, so I didn’t mean to make a perfect template engine. But, I’ll try to make this package more useful because there is other people who use it.
I think it’ll take at least one day, please wait.
I understand. 👍 You don't have to support {% %} or {{ }} but to make a template you do need some way to allowing {% if xxx=xxx %} something using {{ xxx }} {% end %}. Otherwise, the use case of template language is very limited.
I finish implementing basic template usage(like {%%}
). documentation hasn't been updated, but the syntax is simple.
When the template is
#HTML Template File
<html>
<head><title>MyPage</title></head>
<body>
{% if name=="julia" %}
The current time is <strong>
using Dates
now()
```
</strong>
{% end %}
{% for i in 1 : 10 %}
Hello Julia
{% end %}
</body>
Let me give you an example:
if
should render toand if not then it should render to