mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Updated Introduction to Drops (markdown)
+4
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user