Class: Liquor::Pagination::UrlGenerator
- Inherits:
-
Object
- Object
- Liquor::Pagination::UrlGenerator
- Defined in:
- lib/liquor/extensions/pagination.rb
Overview
pagination start: % <div class=‘digg_pagination’>
{% if page.is_current then: %}
← Previous
{% else %}
← Previous
{% end if %}
page: %
{% if page.is_current then: %}
<em class="current">{{ page.number }}</em>
{% elsif page.is_next then: %}
<a href="{{ page.url }}" rel="next">{{ page.number }}</a>
{% elsif page.is_prev then: %}
<a href="{{ page.url }}" rel="previous">{{ page.number }}</a>
{% else %}
<a href="{{ page.url }}">3</a>
{% end if %}
gap: %
…
end: %
{% if page.is_current then: %}
Next →
{% else %}
Next →
end pagination %