[−][src]Trait bracket::helper::Helper
Trait for helpers.
Required methods
pub fn call<'render, 'call>(
&self,
rc: &mut Render<'render>,
ctx: &Context<'call>,
template: Option<&'render Node<'render>>
) -> HelperValue
[src]
&self,
rc: &mut Render<'render>,
ctx: &Context<'call>,
template: Option<&'render Node<'render>>
) -> HelperValue
Function that is called when this helper is resolved by the renderer for a statement or block.
The rc
argument is the render context that can be used
to render inner templates and write to the destination output.
The ctx
argument provides access to the helper arguments and
hash parameters. It also provides support for type assertions and
some convenience functions for working with the Value type.
The template
argument holds the inner template when the helper
is invoked as a block.
For raw block helpers use the text()
function on ctx
to access the underlying string slice.
Implementors
impl Helper for Equal
[src]
pub fn call<'render, 'call>(
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
[src]
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
impl Helper for GreaterThan
[src]
pub fn call<'render, 'call>(
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
[src]
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
impl Helper for GreaterThanEqual
[src]
pub fn call<'render, 'call>(
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
[src]
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
impl Helper for LessThan
[src]
pub fn call<'render, 'call>(
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
[src]
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
impl Helper for LessThanEqual
[src]
pub fn call<'render, 'call>(
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
[src]
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
impl Helper for NotEqual
[src]
pub fn call<'render, 'call>(
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
[src]
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
impl Helper for Each
[src]
pub fn call<'render, 'call>(
&self,
rc: &mut Render<'render>,
ctx: &Context<'call>,
template: Option<&'render Node<'render>>
) -> HelperValue
[src]
&self,
rc: &mut Render<'render>,
ctx: &Context<'call>,
template: Option<&'render Node<'render>>
) -> HelperValue
impl Helper for If
[src]
pub fn call<'render, 'call>(
&self,
rc: &mut Render<'render>,
ctx: &Context<'call>,
template: Option<&'render Node<'render>>
) -> HelperValue
[src]
&self,
rc: &mut Render<'render>,
ctx: &Context<'call>,
template: Option<&'render Node<'render>>
) -> HelperValue
impl Helper for Json
[src]
pub fn call<'render, 'call>(
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
[src]
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
impl Helper for Log
[src]
pub fn call<'render, 'call>(
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
[src]
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
impl Helper for And
[src]
pub fn call<'render, 'call>(
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
[src]
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
impl Helper for Not
[src]
pub fn call<'render, 'call>(
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
[src]
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
impl Helper for Or
[src]
pub fn call<'render, 'call>(
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
[src]
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
impl Helper for Lookup
[src]
pub fn call<'render, 'call>(
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
[src]
&self,
_rc: &mut Render<'render>,
ctx: &Context<'call>,
_template: Option<&'render Node<'render>>
) -> HelperValue
impl Helper for Unless
[src]
pub fn call<'render, 'call>(
&self,
rc: &mut Render<'render>,
ctx: &Context<'call>,
template: Option<&'render Node<'render>>
) -> HelperValue
[src]
&self,
rc: &mut Render<'render>,
ctx: &Context<'call>,
template: Option<&'render Node<'render>>
) -> HelperValue