
* use position in vardata to mark internal hooks * update all render to use position * use macros for rendering * reduce number of iterations over hooks during rendering * cleanup code and add typing * add __future__ * use new macros to render component maps in markdown * remove calls to _get_all_hooks_internal * fix typo * forgot to replace this * unnecessary expand in utils.py
19 lines
376 B
Django/Jinja
19 lines
376 B
Django/Jinja
{% extends "web/pages/base_page.js.jinja2" %}
|
|
{% from "web/pages/macros.js.jinja2" import renderHooks %}
|
|
|
|
{% block declaration %}
|
|
{% for custom_code in custom_codes %}
|
|
{{custom_code}}
|
|
{% endfor %}
|
|
{% endblock %}
|
|
|
|
{% block export %}
|
|
export default function Component() {
|
|
{{ renderHooks(hooks)}}
|
|
|
|
return (
|
|
{{utils.render(render, indent_width=0)}}
|
|
)
|
|
}
|
|
{% endblock %}
|