maghoff / bart

A compile time templating language for Rust inspired by Mustache
https://crates.io/crates/bart
MIT License
37 stars 7 forks source link

Support partials #1

Closed maghoff closed 7 years ago

maghoff commented 7 years ago

Imagined syntax: {{>partialname}}, possibly with an argument for the root scope in the partial: {{>partialname .var}}

maghoff commented 7 years ago

Although, it is surprisingly powerful to include a field unescaped, and have that field be another Bart template in the code. But I think Bart should offer this option as well.