From 290b3cc8b7461074589519b2d9c4ce2ff9612190 Mon Sep 17 00:00:00 2001 From: RichMorin Date: Thu, 12 Aug 2010 13:45:58 -0700 Subject: [PATCH] Migrated from using-liquid-without-rails v5 --- Using-Liquid-without-Rails.textile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Using-Liquid-without-Rails.textile b/Using-Liquid-without-Rails.textile index 54884bf..aa9c0a8 100644 --- a/Using-Liquid-without-Rails.textile +++ b/Using-Liquid-without-Rails.textile @@ -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: -
class Product
+

+class Product
   attr_accessor :name, :price
   def initialize(name,price)
     @name = name
     @price = price
   end
-end
+end +
And you have a chunk of text that you want to Liquidize by inserting some details about your products: