Struct liquid::LiquidOptions
[−]
[src]
pub struct LiquidOptions { pub blocks: HashMap<String, Box<Block>>, pub tags: HashMap<String, Box<Tag>>, pub file_system: Option<PathBuf>, pub error_mode: ErrorMode, }
Fields
blocks: HashMap<String, Box<Block>>
file_system: Option<PathBuf>
error_mode: ErrorMode
Methods
impl LiquidOptions
[src]
fn with_known_blocks() -> LiquidOptions
Creates a LiquidOptions instance, pre-seeded with all known tags and blocks.
fn register_known_blocks(&mut self)
Registers all known tags and blocks in an existing options struct
fn register_block(&mut self, name: &str, block: Box<Block>)
fn register_tag(&mut self, name: &str, tag: Box<Tag>)
Trait Implementations
impl Default for LiquidOptions
[src]
fn default() -> LiquidOptions
Returns the "default value" for a type. Read more