big kahuna
This commit is contained in:
20
lib/CW/Template.pm
Normal file
20
lib/CW/Template.pm
Normal file
@@ -0,0 +1,20 @@
|
||||
package CW::Template;
|
||||
|
||||
use Moo;
|
||||
use Types::Standard qw(HashRef);
|
||||
|
||||
has ctx => (
|
||||
is => 'ro',
|
||||
required => 1,
|
||||
isa => HashRef
|
||||
);
|
||||
|
||||
sub render {
|
||||
my ($self) = @_;
|
||||
return [
|
||||
h1 => ["Undefined Template"],
|
||||
p => [ "You should probably implement this template! " . ref($self) ]
|
||||
];
|
||||
}
|
||||
|
||||
1;
|
||||
Reference in New Issue
Block a user