- or download this
[% FOR resource = nation.resources %]<li>[% resource %]</li>[% END %]
- or download this
[% FOR resource = nation.resources %]<li>[% resource.resource %]</li>[
+% END %]
- or download this
sub view_nation : Regex('^nation/(\d+)$') {
my ( $self, $c ) = @_;
...
$c->stash->{nation} = $c->model('DB::Nation')->find({id => $nid}) |
+| die "No such nation!";
$c->stash->{template} = 'nation/nation.tt2';
}
- or download this
package Game::Schema::Nation;
...
=cut
1;
- or download this
package Game::Schema::NationResource;
...
=cut
1;
- or download this
package Game::Schema::Resource;
...
=cut
1;