Djule v2 Released: New Templating Language for Django

🚀 𝗗𝗷𝘂𝗹𝗲 𝘃𝟮.𝟬.𝟬 𝗶𝘀 𝗵𝗲𝗿𝗲. Last weekend I released Djule v1. Today, v2 is already here. Djule started as an experiment to make server-rendered UI in Python feel more modern without needing a heavy frontend framework. In just a week, it has gone from an early parser/runtime foundation to something that feels much more like a real language and developer workflow. For anyone who has not seen it before: 𝗗𝗷𝘂𝗹𝗲 is a new templating language built on top of Django. It lets you build more expressive, component-based UI while still keeping Django’s server-rendered architecture. 𝗪𝗵𝗮𝘁’𝘀 𝗻𝗲𝘄 𝗶𝗻 𝘃𝟮: • 𝗛𝗧𝗠𝗟 𝗳𝗲𝗲𝗹𝘀 𝗺𝗼𝗿𝗲 𝗻𝗮𝘁𝘂𝗿𝗮𝗹 Native support Self-closing HTML and component tags Interpolated strings inside attributes Better multiline syntax for expressions and grouped values • 𝗖𝗼𝗺𝗽𝗼𝗻𝗲𝗻𝘁𝘀 𝗮𝗿𝗲 𝗲𝗮𝘀𝗶𝗲𝗿 𝘁𝗼 𝘄𝗿𝗶𝘁𝗲 𝗮𝗻𝗱 𝗿𝗲𝘂𝘀𝗲 Multiline component parameter lists Default component parameters Simpler props like error=True instead of error={True} • 𝗘𝗿𝗿𝗼𝗿 𝗺𝗲𝘀𝘀𝗮𝗴𝗲𝘀 𝗮𝗿𝗲 𝗺𝘂𝗰𝗵 𝗯𝗲𝘁𝘁𝗲𝗿 Clear parser diagnostics Real file and line context when something breaks Better import and component error reporting • 𝗗𝗷𝗮𝗻𝗴𝗼 𝗶𝗻𝘁𝗲𝗴𝗿𝗮𝘁𝗶𝗼𝗻 𝗶𝘀 𝗺𝘂𝗰𝗵 𝘀𝗺𝗼𝗼𝘁𝗵𝗲𝗿 Dedicated Django template backend Settings-aware import roots Support for Django-style global context processors and built-in tags That means Djule now works much more naturally inside a real Django project without needing a bunch of manual setup. 𝗧𝗵𝗲 𝗩𝗦 𝗖𝗼𝗱𝗲 𝗲𝘅𝘁𝗲𝗻𝘀𝗶𝗼𝗻 𝗮𝗹𝘀𝗼 𝗴𝗼𝘁 𝗮 𝗺𝗮𝗷𝗼𝗿 𝘂𝗽𝗴𝗿𝗮𝗱𝗲: • Live diagnostics while you type • Autocomplete for components, props, imports, globals, and snippets • Better import UX • Django-aware editor globals • Go-to-definition for components • Improved highlighting for newer Djule syntax v2 feels like the point where Djule starts becoming more than just “a parser I built” and starts feeling like a real language workflow. 👇 𝗬𝗼𝘂 𝗰𝗮𝗻 𝘁𝗿𝘆 𝗶𝘁 𝗵𝗲𝗿𝗲: PyPI: pip install djule VS Code Marketplace: rhxrr.djule Would love to hear what people think, especially from people building with Python or Django. #Python #Django #WebDevelopment #OpenSource #ProgrammingLanguages #VSCode #DeveloperTools

  • text

To view or add a comment, sign in

Explore content categories