NAME
Whatbot::Helper::Bootstrap - Provide a helper shell to render a Bootstrap page.
SYNOPSIS
DESCRIPTION
PUBLIC ACCESSORS
-
An ArrayRef of Link objects that represent the top navbar. These render in addition to the global application menu dropdown.
PUBLIC METHODS
-
Add a menu to the menu_items arrayref. Must be a Link.
-
Return true if items exist in the menu_items arrayref.
- render( $req, \$tt2, \%params? )
-
Render the given template content, surrounded by the Bootstrap wrapper, to the response. Requires the request, the tt2 as a string reference, and optionally, a hashref of parameters to send to the template. Two parameters are reserved for the wrapper: "page_title" is the name in the upper left, defaulting to "whatbot", and "error" will render a red box with the content of that variable in the container.
- combine_content( $content_tt2 )
-
Return full renderable template, as a string ref, given the dynamic content TT2 string.
LICENSE/COPYRIGHT
Be excellent to each other and party on, dudes.