From 943a75e025cb7b9b2b7c2f493c2be06a67e339f0 Mon Sep 17 00:00:00 2001 From: Matt Kantor Date: Mon, 12 Jul 2021 09:26:51 -0700 Subject: [PATCH] (feat) export push_partial_block and pop_partial_block This allows custom helpers to manipulate the @partial-block variable. --- src/render.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render.rs b/src/render.rs index d56e7403e..385f1e31e 100644 --- a/src/render.rs +++ b/src/render.rs @@ -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(); }