mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-03 00:55:11 -07:00
Updated Introduction to Drops (markdown)
+4
-1
@@ -59,7 +59,10 @@ Returns the drop instance.
|
|||||||
|
|
||||||
### Controller
|
### 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
|
### View
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user