lnbits-legend/lnbits/templates/macros.jinja

12 lines
306 B
Text
Raw Normal View History

{% macro window_vars(user, wallet) -%}
<script>
window.extensions = {{ EXTENSIONS | tojson | safe }};
{% if user %}
window.user = {{ user | tojson | safe }};
{% endif %}
{% if wallet %}
window.wallet = {{ wallet | tojson | safe }};
{% endif %}
</script>
{%- endmacro %}