pub struct TemplateParser;Expand description
Template parser
Implementations§
Source§impl TemplateParser
impl TemplateParser
Sourcepub fn parse(content: &str) -> Result<ParsedTemplate, TemplateError>
pub fn parse(content: &str) -> Result<ParsedTemplate, TemplateError>
Sourcepub fn extract_placeholders(content: &str) -> Result<Vec<String>, TemplateError>
pub fn extract_placeholders(content: &str) -> Result<Vec<String>, TemplateError>
Sourcepub fn has_conditionals(content: &str) -> Result<bool, TemplateError>
pub fn has_conditionals(content: &str) -> Result<bool, TemplateError>
Detect if template has conditionals
Sourcepub fn has_includes(content: &str) -> Result<bool, TemplateError>
pub fn has_includes(content: &str) -> Result<bool, TemplateError>
Detect if template has includes
Auto Trait Implementations§
impl Freeze for TemplateParser
impl RefUnwindSafe for TemplateParser
impl Send for TemplateParser
impl Sync for TemplateParser
impl Unpin for TemplateParser
impl UnwindSafe for TemplateParser
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