Migrated from using-liquid-without-rails v5

RichMorin
2010-08-12 13:45:58 -07:00
parent afc15db53c
commit 290b3cc8b7
+4 -2
@@ -3,13 +3,15 @@ The secret is creating a @to_liquid@ method on any classes you create.
Let's say you have a Product class:
<pre><code>class Product
<pre><code>
class Product
attr_accessor :name, :price
def initialize(name,price)
@name = name
@price = price
end
end</code></pre>
end
</code></pre>
And you have a chunk of text that you want to Liquidize by inserting some details about your products: