The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

SweetPea::Application::View - Model support for SweetPea-Application.

SYNOPSIS

    ... from inside SweetPea::Application or a Controller;
    #access View::Email::welcome_letter()
    $s->view('Email')->welcome_letter();

METHODS

new

    The new method instantiates a new SweetPea::Application::View object
    which loads view packages on requests ands provides accessors to it's
    functions. 
    
    $s->plug( 'view', sub { return SweetPea::Application::View->new($s); });

AUTHOR

Al Newkirk, <al.newkirk at awnstudio.com>