mirror of
https://github.com/kemko/liquid.git
synced 2026-01-06 10:15:40 +03:00
Implicit variable scoping
This commit is contained in:
@@ -15,7 +15,7 @@ class CommentForm < Liquid::Block
|
||||
def render(context)
|
||||
article = context[@variable_name]
|
||||
|
||||
context.stack do
|
||||
context.stack('form') do
|
||||
context['form'] = {
|
||||
'posted_successfully?' => context.registers[:posted_successfully],
|
||||
'errors' => context['comment.errors'],
|
||||
|
||||
@@ -24,7 +24,7 @@ class Paginate < Liquid::Block
|
||||
def render(context)
|
||||
@context = context
|
||||
|
||||
context.stack do
|
||||
context.stack('paginate') do
|
||||
current_page = context['current_page'].to_i
|
||||
|
||||
pagination = {
|
||||
|
||||
Reference in New Issue
Block a user