ããããããªã表é¡ã§ããè¦ã¯ã»ã»ã» MyApp::Schema::Topicsã¨MyApp::Schema::Commentsã1:nã®é¢ä¿ã«ããã¨ã㦠package MyApp::Schema::Topics; use strict; __PACKAGE__->has_many('comments' => 'MyApp::Schema::Comments'); 1; ãããªã¢ã¯ã·ã§ã³ã§ sub list : Local { my ( $self, $c ) = @_; my $topics = $c->model('Topics')->search({}); $c->stash->{topics} = $topics; $c->stash->{template} = 'list.tt'; } TTã§ç´ ã§ããå ´å <html> <body> <ul> [% WHILE (topic =
{{#tags}}- {{label}}
{{/tags}}