Skip to content

bazzel/jquery-tmpl-on-Rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using the jQuery Template plugin in Rails

This is still experimental.

After reading http://blog.reybango.com/2010/07/09/not-using-jquery-javascript-templates-youre-really-missing-out/ I was eagered to find out if I could make this work in Rails. So I started this project, which at the moment:

 * Can display a simple AR model object in a table row (TR)
 * Retrieve more items in a Twitter-like manner (sort of)
 
TODO:
 * Can I use
     =link_to 'Click me', recipe
   instead of
     =link_to 'Click me', recipe_path(recipe)
 * How about using expression/operators in a partial. Can I port them to jquery.tmpl (and do I want to)? 

* Installation

  cp config/database.sample.yml config/database.yml
  gem install bundler
  bundler install --relock
  rake db:create
  rake db:migrate

* Usage

  script/server

About

DRY experiment for using Rails partials with jquery-tmpl

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published