Sowrd: Blade-style template engine for Rust released as early 0.1.1 crate
A developer familiar with Laravel has released Sword, a Blade-inspired template engine for server-rendered pages in Rust. Templates use .sword.html files and compile to MiniJinja under the hood, with output escaped by default and directives such as @foreach, @extends, @include, and components with slots. Expressions are intentionally limited to avoid function calls and filters inside templates, and typed components can be backed by Rust structs. An optional Laravel adapter adds a service provider and extra directives, and the project is available on crates.io and GitHub. The author describes it as an early release whose expression rules are still settling, and recommends using it only with trusted template authors.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in