Skip to content

Commit 3f17405

Browse files
committed
(feat) export push_partial_block and pop_partial_block
This allows custom helpers to manipulate the @partial-block variable.
1 parent 62d7860 commit 3f17405

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/render.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ impl<'reg: 'rc, 'rc> RenderContext<'reg, 'rc> {
177177
self.inner_mut().partials.insert(name, partial);
178178
}
179179

180-
pub(crate) fn push_partial_block(&mut self, partial: &'reg Template) {
180+
pub fn push_partial_block(&mut self, partial: &'reg Template) {
181181
self.inner_mut().partial_block_stack.push_front(partial);
182182
}
183183

184-
pub(crate) fn pop_partial_block(&mut self) {
184+
pub fn pop_partial_block(&mut self) {
185185
self.inner_mut().partial_block_stack.pop_front();
186186
}
187187

0 commit comments

Comments
 (0)