ã¡ã¨å¤ã話é¡ã ãã©ã TTã§DBICã®has_manyãªã¡ã½ããã使ã TTã§DBICã®many_to_manyãªã¡ã½ããã使ã [% WHILE %] ã®ä¸ã®ãã¨ããã®å¾ ããã辺ã§åé¡ã«ãªã£ã¦ãã ä½ãè¨ããããã¨ããã¨ãTTã§has_manyã§å®ç¾©ããåãªãã¸ã§ã¯ãã®çµæä¸è¦§ãåå¾ããã¡ã½ãã(ããã§ã¯comments)ã«ã¢ã¯ã»ã¹ããã¨ã¤ãã¬ã¼ã¿ã¼ã§ã¯ãªãé åã®ãªãã¡ã¬ã³ã¹ã¨ãã¦æ±ãããã®ã§å¤§å¤é¢åã ãããTemplate::Stash::Contextã§ãããã¾ãã§ããã (Catalystã®å ´å)MyAPP::View::TT 㧠__PACKAGE__->config( STASH => Template::Stash::Context->new(), ); ãããã¦ãViewã®ã»ãã§ã¯ <html><body> <ul> [% WHILE (topic = top
{{#tags}}- {{label}}
{{/tags}}