module NeatPages::Helpers

Public Instance Methods

neat_pages_ajax_items(partial_path, options={}) click to toggle source
# File lib/neat_pages/helpers.rb, line 6
def neat_pages_ajax_items(partial_path, options={})
  options = { wrapper: :div }.merge(options)

  ("<#{options[:wrapper]} id=\"neat-pages-ajax-wrapper\" class=\"first-load\">" + render(partial_path, options) + "</#{options[:wrapper]}>").html_safe
end
neat_pages_navigation(options={}) click to toggle source

DEPRECATED : The options parameter is deprecated. I left it here for backward compatibility. (2013-11-20)

# File lib/neat_pages/helpers.rb, line 13
def neat_pages_navigation(options={})
  NeatPages::Helpers::Navigation.new(pagination, request).generate
end
neat_pages_status() click to toggle source
# File lib/neat_pages/helpers.rb, line 17
def neat_pages_status
  NeatPages::Helpers::Status.new(pagination, request).generate
end