[Mason] /Base.mp

2015-11-09 Thread Carrington, Matthew (Produban)
I've been trying to setup a /Base.mp top level component to check that users have logged on ... method handle() { # check if they are logged in If(!logged_in()) { $m->redirect('/login'); } # pass on for normal processing if(what???) { # this w

[Mason] Import

2015-11-11 Thread Carrington, Matthew (Produban)
Poet provides a useful facility to import a variable into a component ... e.g. From Poet::Manual::Subclassing ... package MyApp::Import use DBI; use Poet::Moose; extends 'Poet::Import'; method provide_dbh ($caller, $poet) { $dbh = DBI->connect(...); } ... th

[Mason] Poet Toolbar injection

2015-11-12 Thread Carrington, Matthew (Produban)
I have had some problems with the development mode toolbar injection interfering with my javascript. Can anyone tell me how to stop the injection of the toolbar when in development mode ? Any help much appreciated. Matthew Emails aren't always secure, and they may be intercepted or changed aft