pub struct Template {
pub front: Frontmatter,
pub body: String,
/* private fields */
}Fields§
§front: Frontmatter§body: StringImplementations§
Source§impl Template
impl Template
Sourcepub fn render_frontmatter(
&mut self,
tera: &mut Tera,
vars: &Context,
) -> Result<()>
pub fn render_frontmatter( &mut self, tera: &mut Tera, vars: &Context, ) -> Result<()>
Render frontmatter through Tera once to resolve {{ }} in YAML.
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnwindSafe for Template
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