Skip to content

Commit 178bfb5

Browse files
authored
Update README.md
1 parent 8ee7117 commit 178bfb5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,23 @@ Now we can test our API at [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/do
278278
Please ensure your server is running
279279
![Swagger UI](docs/img/car_api.png)
280280

281+
## HTML Templating
282+
Ellar has built-in support for Jinja2, which is a popular template engine for HTML. This feature allows for easy and efficient HTML templating similar to that of Flask. Jinja2 can be used to create reusable templates, and to insert dynamic data into HTML pages. It also has support for template inheritance, control structures, and other useful features that can help to simplify and streamline the process of creating HTML templates.
283+
284+
```html
285+
<html>
286+
<body>
287+
<ul>
288+
{% for item in items %}
289+
<li>{{ item }}</li>
290+
{% endfor %}
291+
</ul>
292+
</body>
293+
</html>
294+
```
295+
296+
See the [Doc](https://eadwincode.github.io/ellar/templating/templating/) for more examples.
297+
281298
## Status
282299
Project is still in development
283300
- Documentation - (in progress)

0 commit comments

Comments
 (0)