Expand description
oxblade: Blade templates for Rust.
Blade’s markup and directives, Laravel’s helpers, Rust’s expressions. See design/SPEC.md.
The template engine is available with the default Cargo features.
Re-exports§
pub use shape::Html;pub use shape::Shape;pub use shape::Text;pub use shape::View;pub use shape::view;
Modules§
- attributes
- Blade’s insertion-ordered component attribute bag.
- check
- Static checking of parsed Blade templates against application-provided shapes.
- collections
- Laravel collection operations on Rust lists and insertion-ordered maps.
- encode
- Laravel Blade’s HTML, JSON and JavaScript encoders.
- engine
- Public configuration and entry points for the template engine.
- error
- Source-aware diagnostics shared by compilation and rendering.
- extend
- Application-defined directives, conditions, source transforms, and view data hooks.
- formatting
- Laravel formatting and opt-in PHP semantics for template calls.
- library
- Built-in function and method dispatch.
- loader
- View source loading contract. Implementations resolve names and namespaces.
- shape
- Type descriptions for checking view data and component props.
- span
- Byte spans and source locations.
- translate
- Translations: Laravel’s translator, ported from
illuminate/translation(MIT). - value
- Runtime value representations. Evaluation lives in the evaluator.
Type Aliases§
- Helper
- An application helper that can borrow runtime values.
Attribute Macros§
- component
- Registers a class component and its lifecycle and exposed methods.
- expose
- Marks a method for exposure within a component or receiver implementation.
- methods
- Registers the public and explicitly exposed methods of a receiver type.