Here's some code:
class window.Shopify extends Batman.App
@resources 'products'
@root 'products#index'
class Shopify.Product extends Batman.Model
@persist Batman.RestStorage
class Shopify.ProductsController extends Batman.Controller
index: ->
@products = Shopify.Product.get('all')
show: (params) ->
@product = Shopify.Product.find(params.id)
views/products/index.html
<ul id="products">
<li data-foreach-product="products">
<a data-route="product" data-bind="product.name">this text will be replaced with product.name</a>
</li>
<li>
<span data-bind="'products' | pluralize products.length"></span>
</li>
</ul>
