pub enum TemplateEngine {
Show 20 variants
Handlebars,
Mustache,
Ejs,
Pug,
Jade,
Django,
Jinja2,
Mako,
Twig,
Smarty,
Erb,
Haml,
Liquid,
Dust,
Eta,
Vue,
Svelte,
React,
Angular,
Generic,
}
Expand description
Template engine classification
Variants§
Handlebars
Mustache
Ejs
Pug
Jade
Django
Jinja2
Mako
Twig
Smarty
Erb
Haml
Liquid
Dust
Eta
Vue
Svelte
React
Angular
Generic
Implementations§
Source§impl TemplateEngine
impl TemplateEngine
Sourcepub fn extensions(&self) -> &'static [&'static str]
pub fn extensions(&self) -> &'static [&'static str]
Get the typical file extensions for this template engine
Sourcepub fn score_boost(&self) -> f64
pub fn score_boost(&self) -> f64
Get score boost factor for this template engine
Trait Implementations§
Source§impl Clone for TemplateEngine
impl Clone for TemplateEngine
Source§fn clone(&self) -> TemplateEngine
fn clone(&self) -> TemplateEngine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TemplateEngine
impl Debug for TemplateEngine
Source§impl Hash for TemplateEngine
impl Hash for TemplateEngine
Source§impl PartialEq for TemplateEngine
impl PartialEq for TemplateEngine
impl Eq for TemplateEngine
impl StructuralPartialEq for TemplateEngine
Auto Trait Implementations§
impl Freeze for TemplateEngine
impl RefUnwindSafe for TemplateEngine
impl Send for TemplateEngine
impl Sync for TemplateEngine
impl Unpin for TemplateEngine
impl UnwindSafe for TemplateEngine
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more