| Crates.io | latera |
| lib.rs | latera |
| version | 0.0.1 |
| created_at | 2022-09-19 18:55:35.484928+00 |
| updated_at | 2022-09-19 18:55:35.484928+00 |
| description | LaTeX Template engine based on Tera |
| homepage | |
| repository | https://github.com/k12ish/LaTera |
| max_upload_size | |
| id | 669312 |
| size | 498,190 |
Use Tera for HTML:
<title>{% block title %}{% endblock title %}</title>
<ul>
{% for user in users %}
<li><a href="{{ user.url }}">{{ user.username }}</a></li>
{% endfor %}
</ul>
{# a comment #}
Use LaTera for LaTeX:
\section{ <# block section #><# endblock section #> }
\begin{itemize}
<# for user in users #>
\item \href{ << user.url >> }{ << user.username >> }
<# endfor #>
\end{itemize}
<% a comment %>
-variable_start = { "{{-" | "{{" }
-variable_end = { "-}}" | "}}" }
+variable_start = { "<<-" | "<<" }
+variable_end = { "->>" | ">>" }
-tag_start = { "{%-" | "{%" }
-tag_end = { "-%}" | "%}" }
+tag_start = { "<#-" | "<#" }
+tag_end = { "-#>" | "#>" }
-comment_start = { "{#-" | "{#" }
-comment_end = { "-#}" | "#}" }
+comment_start = { "<%-" | "<%" }
+comment_end = { "-%>" | "%>" }