Struct handlebars::Decorator [−][src]
pub struct Decorator<'reg: 'rc, 'rc> { /* fields omitted */ }
Methods
impl<'reg: 'rc, 'rc> Directive<'reg, 'rc>
[src]
impl<'reg: 'rc, 'rc> Directive<'reg, 'rc>
pub fn name(&self) -> &String
[src]
pub fn name(&self) -> &String
Returns helper name
pub fn params(&self) -> &Vec<PathAndJson<'reg, 'rc>>
[src]
pub fn params(&self) -> &Vec<PathAndJson<'reg, 'rc>>
Returns all helper params, resolved within the context
pub fn param(&self, idx: usize) -> Option<&PathAndJson<'reg, 'rc>>
[src]
pub fn param(&self, idx: usize) -> Option<&PathAndJson<'reg, 'rc>>
Returns nth helper param, resolved within the context
pub fn hash(&self) -> &BTreeMap<String, PathAndJson<'reg, 'rc>>
[src]
pub fn hash(&self) -> &BTreeMap<String, PathAndJson<'reg, 'rc>>
Returns hash, resolved within the context
pub fn hash_get(&self, key: &str) -> Option<&PathAndJson<'reg, 'rc>>
[src]
pub fn hash_get(&self, key: &str) -> Option<&PathAndJson<'reg, 'rc>>
Return hash value of a given key, resolved within the context
pub fn template(&self) -> Option<&'reg Template>
[src]
pub fn template(&self) -> Option<&'reg Template>
Returns the default inner template if any