NAME

Dancer::Plugin::PageHistory - store recent page history for user into session

VERSION

Version 0.001

DESCRIPTION

The add_to_history keyword which is exported by this plugin allows you to add interesting items to the history lists. We also export the history keyword which returns the current Dancer::Plugin::PageHistory::PageSet object.

SUPPORTED SESSION ENGINES

CONFIGURATION

No configuration is necessarily required.

If you wish to have arguments passed to "new" in Dancer::Plugin::PageHistory::PageSet these can be added to your configuration along with configuration for the plugin itself, e.g.:

   plugins:
     PageHistory:
       add_all_pages: 1
       ingore_ajax: 1 
       history_name: someothername
       PageSet:
         default_type: all
         fallback_page:
           path: "/"
         max_items: 20
         methods:
           - default
           - product
           - navigation

Configuration options for the plugin itself:

HOOKS

This plugin makes use of the following hooks:

before

Add current page to history. See "add_all_pages" and "ignore_ajax".

before_template_render

Puts history into the token page_history.

TODO

  • Add more tests

  • Add support for more session engines

  • Create Dancer2 plugin

AUTHOR

Peter Mottram (SysPete), "peter@sysnix.com"

BUGS

This is BETA software so bugs and missing features are expected.

Please report any bugs or feature requests via the project's GitHub issue tracker:

https://github.com/SysPete/Dancer-Plugin-PageHistory/issues

I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Dancer::Plugin::PageHistory

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright 2015 Peter Mottram (SysPete).

This program is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

See http://dev.perl.org/licenses/ for more information.