mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-26 13:45:13 -07:00
Migrated from liquid-for-programmers v5
@@ -58,7 +58,7 @@ All tag blocks are parsed by liquid. To create a new block you just have to inhe
|
|||||||
|
|
||||||
<pre><code>
|
<pre><code>
|
||||||
class Random < Liquid::Block
|
class Random < Liquid::Block
|
||||||
def initialize(markup, tokens)
|
def initialize(tag_name, markup, tokens)
|
||||||
super
|
super
|
||||||
@rand = markup.to_i
|
@rand = markup.to_i
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user