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 Feb 25, 2025
1 parent 6055df6 commit 943a75e
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 @@ -172,11 +172,11 @@ impl<'reg: 'rc, 'rc> RenderContext<'reg, 'rc> {
self.partials.insert(name, partial);
}

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

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

Expand Down

0 comments on commit 943a75e

Please sign in to comment.