pub struct TemplatePlate { /* private fields */ }Expand description
Template-based plate engine using MiniJinja
Implementations§
Trait Implementations§
Source§impl PlateEngine for TemplatePlate
impl PlateEngine for TemplatePlate
Source§fn register_filter(
&mut self,
name: &str,
func: fn(&State<'_, '_>, Value, Kwargs) -> Result<Value, Error>,
)
fn register_filter( &mut self, name: &str, func: fn(&State<'_, '_>, Value, Kwargs) -> Result<Value, Error>, )
Register a filter with the template environment
Source§fn compose(
&mut self,
context: HashMap<String, QuillValue>,
) -> Result<String, TemplateError>
fn compose( &mut self, context: HashMap<String, QuillValue>, ) -> Result<String, TemplateError>
Compose template with context from markdown decomposition
Auto Trait Implementations§
impl Freeze for TemplatePlate
impl RefUnwindSafe for TemplatePlate
impl Send for TemplatePlate
impl Sync for TemplatePlate
impl Unpin for TemplatePlate
impl UnwindSafe for TemplatePlate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more