Struct Delimiters
pub struct Delimiters { pub block_start: Cow<'static, str>, pub block_end: Cow<'static, str>, pub variable_start: Cow<'static, str>, pub variable_end: Cow<'static, str>, pub comment_start: Cow<'static, str>, pub comment_end: Cow<'static, str> }
This allows customizing the delimiters used for blocks, variables, and comments in case
you want to template files that contains text like {{, like LaTeX.
Delimiters need to be exactly 2 bytes long (e.g. {{, «).
Fields
block_start: Cow<'static, str>Start delimiter for blocks, default:
{%block_end: Cow<'static, str>End delimiter for blocks, default:
%}variable_start: Cow<'static, str>Start delimiter for variables, default:
{{variable_end: Cow<'static, str>End delimiter for variables, default:
}}comment_start: Cow<'static, str>Start delimiter for comments, default:
{#comment_end: Cow<'static, str>End delimiter for comments, default:
#}
Trait Implementations
impl Clone for Delimiters
fn clone(&self) -> Self
impl Debug for Delimiters
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for Delimiters
fn default() -> Self
impl Eq for Delimiters
impl PartialEq for Delimiters
fn eq(&self, other: &Self) -> bool