
* 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
12 lines
337 B
Django/Jinja
12 lines
337 B
Django/Jinja
{% import 'web/pages/utils.js.jinja2' as utils %}
|
|
{% from 'web/pages/macros.js.jinja2' import renderHooksWithMemo %}
|
|
{% set all_hooks = component._get_all_hooks() %}
|
|
|
|
export function {{tag_name}} () {
|
|
{{ renderHooksWithMemo(all_hooks, memo_trigger_hooks) }}
|
|
|
|
return (
|
|
{{utils.render(component.render(), indent_width=0)}}
|
|
)
|
|
}
|