Skip to content

Commit

Permalink
(feat) export push_partial_block and pop_partial_block
Browse files Browse the repository at this point in the history
This allows custom helpers to manipulate the @partial-block variable.
  • Loading branch information
mkantor committed Jul 12, 2021
1 parent 62d7860 commit 3f17405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ impl<'reg: 'rc, 'rc> RenderContext<'reg, 'rc> {
self.inner_mut().partials.insert(name, partial);
}

pub(crate) fn push_partial_block(&mut self, partial: &'reg Template) {
pub fn push_partial_block(&mut self, partial: &'reg Template) {
self.inner_mut().partial_block_stack.push_front(partial);
}

pub(crate) fn pop_partial_block(&mut self) {
pub fn pop_partial_block(&mut self) {
self.inner_mut().partial_block_stack.pop_front();
}

Expand Down

0 comments on commit 3f17405

Please sign in to comment.