NAME

DayDayUp::Context - extends Mojolicious::Context

Extra Methods

config

$c->config

it's a HashRef from YAML::LoadFile daydayup.yml and daydayup_local.yml if -e

dbh

DBI with DBD::SQLite with daydayup.db

tt

Template instance

view

use $self->tt->process to $c->res->body

$c->view( template => 'index.html' );

save_config

Save the changed config into daydayup_local.yml

$c->save_config( $config );

AUTHOR

Fayland Lam < fayland at gmail dot com >

COPYRIGHT AND LICENSE

Copyright 2008 Fayland Lam, all rights reserved.

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