From 160764fa8ede3465f424aed47f56439160b879f9 Mon Sep 17 00:00:00 2001 From: Leonard Chin Date: Sat, 19 Feb 2011 22:20:51 +0900 Subject: [PATCH] Fix rdoc list formatting. Also changed from list to subheadings for features. --- README.rdoc | 91 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 53 insertions(+), 38 deletions(-) diff --git a/README.rdoc b/README.rdoc index de41c2b..79b1214 100644 --- a/README.rdoc +++ b/README.rdoc @@ -5,23 +5,23 @@ A Scope & Engine based, clean, powerful, customizable and sophisticated paginato == Features -* Clean +=== Clean Does not globally pollute +Array+, +Hash+, +Object+ or AR::Base. -* Easy to use +=== Easy to use Just bundle the gem, then your models are ready to be paginated. No configuration required. Don't have to define anything in your models or helpers. -* Simple scope-based API +=== Simple scope-based API Everything is method chainable with less "Hasheritis". You know, that's the Rails 3 way. No special collection class or anything for the paginated values, instead using a general AR::Relation instance. So, of course you can chain any other conditions before or after the paginator scope. -* Customizable engine-based I18n-aware helper +=== Customizable engine-based I18n-aware helper As the whole pagination helper is basically just a collection of links and non-links, Kaminari renders each of them through its own partial template inside the Engine. So, you can easily modify their behaviour, style or whatever by overriding partial templates. -* ORM & template engine agnostic +=== ORM & template engine agnostic Kaminari supports multiple ORMs (ActiveRecord, Mongoid) and multiple template engines (ERB, Haml). -* Modern +=== Modern The pagination helper outputs the HTML5