%ul.page_list - pages.each do |page| %li.page = render :inline=>template, :locals=>{:page=>page}