Struct handlebars::Decorator [−][src]
pub struct Decorator<'reg, 'rc> { /* fields omitted */ }
Expand description
Render-time Decorator data when using in a decorator definition
Implementations
impl<'reg: 'rc, 'rc> Decorator<'reg, 'rc>
[src]
impl<'reg: 'rc, 'rc> Decorator<'reg, 'rc>
[src]pub fn params(&self) -> &Vec<PathAndJson<'reg, 'rc>>
[src]
pub fn params(&self) -> &Vec<PathAndJson<'reg, 'rc>>
[src]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>>
[src]Returns nth helper param, resolved within the context
pub fn hash(&self) -> &BTreeMap<&'reg str, PathAndJson<'reg, 'rc>>
[src]
pub fn hash(&self) -> &BTreeMap<&'reg str, PathAndJson<'reg, 'rc>>
[src]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>>
[src]Return hash value of a given key, resolved within the context