From 138a52d3b846c5a9213f182c1cf8144750a7b016 Mon Sep 17 00:00:00 2001 From: codyrobbins Date: Thu, 17 Nov 2011 12:11:14 -0800 Subject: [PATCH] Updated Introduction to Drops (markdown) --- Introduction-to-Drops.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Introduction-to-Drops.md b/Introduction-to-Drops.md index bf52f7b..252d31f 100644 --- a/Introduction-to-Drops.md +++ b/Introduction-to-Drops.md @@ -59,7 +59,10 @@ Returns the drop instance. ### Controller - template = Liquid::Template.parse( File.read( product_view.liquid ) ) template.render( { :product => ProductDrop.new(@product) } ) + file = File.read(product_view.liquid) + template = Liquid::Template.parse(file) + drop = ProductDrop.new(@product) + template.render('product' => drop) ### View