mirror of
https://github.com/D4Vinci/Scrapling.git
synced 2026-11-21 02:44:16 +08:00
- Changed the structure to make it easier to add others soon. - Moved the sponsors to a shared template between languages.
9 lines
322 B
Django/Jinja
9 lines
322 B
Django/Jinja
{% set translation = "translations/" ~ locale ~ ".html.jinja" %}
|
|
{% if translation is existing_template %}
|
|
{% import translation as translated %}
|
|
{% set rendered %}{% include "_base/class.html.jinja" %}{% endset %}
|
|
{{ translated.translate(rendered) }}
|
|
{% else %}
|
|
{% include "_base/class.html.jinja" %}
|
|
{% endif %}
|