Skip to content

Conversation

christophehenry
Copy link

This PR is an effort to use django-rusty-templates to produce JS code that makes Django templates usable on the frontend. This is still very very rough, more of a POC than something else, but this demonstrate that the lexer and parser code from django-rusty-templates can be used to transpile DTL into JS. Unfortunately, as of now, the code in parse.rs is too tightly coupled with pyo3 which makes it unusable to produce JS. I want to push this work forward as I think it would be an aweome tool for the Django community but my Rust knowledge is still too low for me to work on this alone.

@christophehenry christophehenry force-pushed the js-transpiler branch 6 times, most recently from c6978ce to c4657cc Compare September 14, 2025 12:28
@christophehenry christophehenry changed the title Transpile DTL into JS templates [WIP] Transpile DTL into JS templates Sep 15, 2025
@christophehenry christophehenry marked this pull request as ready for review September 15, 2025 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant