0.0.1 • Published 12 years ago

railway-pagination v0.0.1

Weekly downloads
6
License
-
Repository
github
Last release
12 years ago

About

Siple pagination plugin for RailwayJS MVC framework.

Usage

npmfile.js

require('railway-pagination');

posts_controller.js

action(function index() { var page = req.param('page') || 1; Post.paginate({limit: 10, page: page}, function (err, posts) { if (err) render({posts: posts}); }); });

app/views/posts/index.ejs:

paginate(posts);

License

MIT

0.0.1

12 years ago