mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
fix example servlet
This commit is contained in:
@@ -23,11 +23,7 @@ class Servlet < LiquidServlet
|
||||
end
|
||||
|
||||
def products
|
||||
{ 'products' => products_list, 'section' => 'Snowboards', 'cool_products' => true}
|
||||
end
|
||||
|
||||
def description
|
||||
"List of Products ~ This is a list of products with price and description."
|
||||
{ 'products' => products_list, 'description' => description, 'section' => 'Snowboards', 'cool_products' => true}
|
||||
end
|
||||
|
||||
private
|
||||
@@ -38,4 +34,8 @@ class Servlet < LiquidServlet
|
||||
{'name' => 'Arbor Diamond', 'price' => 59900, 'description' => 'the *arbor diamond* is a made up product because im obsessed with arbor and have no creativity'}]
|
||||
end
|
||||
|
||||
def description
|
||||
"List of Products ~ This is a list of products with price and description."
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user