Strehler::Helpers - Helpers
Just few methods used in Strehler that could come useful throughtout in the application and also while developing on top of Strehler.
arguments: $string
return value: $slugified
This method take a string and return the slugified version of it. Used to retrieve articles.
arguments: entity
return value $class
Return the $class related to the given entity
return value @entities
Return all the entities using categories
Return standard entities defined in Strehler core.
Return all the entities managed by the system
return value \@editor_menu, \@admin_menu
Used to build the structure of the top bar, considering access level
argument: $class_plural
Return a class from its plural name.
return value $dir
Return public directory as configured by Dancer2, using Dancer2 explicit configuration, but with a fallback calculated on configuration directory.
return value $checked
Return true is static version configured in VERSION file under public directory is the same configured in Strehler module.
arguments: $entity, $session, $params
return value @parametes
Take entity, session values and parameters from request and calculate all the parameters that will be used for list page.
Parameters considered are listed by the function list_parameters_names
To install Strehler, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Strehler
CPAN shell
perl -MCPAN -e shell install Strehler
For more information on module installation, please visit the detailed CPAN module installation guide.