Skip to content

Commit 943a75e

Browse files
committed
(feat) export push_partial_block and pop_partial_block
This allows custom helpers to manipulate the @partial-block variable.
1 parent 6055df6 commit 943a75e

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
@@ -172,11 +172,11 @@ impl<'reg: 'rc, 'rc> RenderContext<'reg, 'rc> {
172172
self.partials.insert(name, partial);
173173
}
174174

175-
pub(crate) fn push_partial_block(&mut self, partial: &'rc Template) {
175+
pub fn push_partial_block(&mut self, partial: &'rc Template) {
176176
self.partial_block_stack.push_front(partial);
177177
}
178178

179-
pub(crate) fn pop_partial_block(&mut self) {
179+
pub fn pop_partial_block(&mut self) {
180180
self.partial_block_stack.pop_front();
181181
}
182182

0 commit comments

Comments
 (0)