Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 654 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 654 Bytes

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>