Dancer::Plugin::Nitesi::Routes - Routes for Nitesi Shop Machine
The following routes are automatically created by this plugin:
/cart
Route for displaying and updating the cart.
/checkout
Route for the checkout process.
Route for displaying navigation pages, for example categories and menus.
Route for displaying products.
The template for each route type can be configured:
plugins: Nitesi::Routes: cart: template: cart checkout: template: checkout navigation: template: listing product: template: product
This sample configuration shows the current defaults.
The following hooks are available to manipulate the values passed to the templates:
The hook sub receives the product data as hash reference.
The hook sub receives the navigation data as hash reference. The list of products is the value of the products key.
products
To install Dancer::Plugin::Nitesi, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Plugin::Nitesi
CPAN shell
perl -MCPAN -e shell install Dancer::Plugin::Nitesi
For more information on module installation, please visit the detailed CPAN module installation guide.