Add split example to example servlet.

This commit is contained in:
7rans
2011-09-29 18:41:47 -04:00
parent 1379061398
commit edebcaa603
4 changed files with 23 additions and 8 deletions

View File

@@ -25,7 +25,11 @@ class Servlet < LiquidServlet
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."
end
private
def products_list
@@ -34,4 +38,4 @@ 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
end
end