/jrsx

A clean JSX syntax for your Askama templates

Primary LanguageRust

jrsx

CI

A clean JSX syntax for your Askama templates.

Before:
{%- import "hello.html" as hello_scope -%}
{%- import "child.html" as child_scope -%}

{% call hello_scope::hello(name) %}
{% call hello_scope::hello(name=name) %}
{% call hello_scope::hello(name="world") %}
{% call child_scope::child() %}Super!{% endcall %}
After:
<Hello name />
<Hello name=name />
<Hello name="world" />
<Child>Super!</Child>