Hi, Here is what I am trying:
</%init> ... RSS stuff ... my $story_list = $m->comp('top_stories.mc', noprint=>1); for(@$story_list) { $rss->add_item( title => "[".$_->{show_type}."]: ".$_->{show_name}, permaLink => $base_url.$_->{story_url}, description => $_->{title}." / ".elide($_->{story}, 90), pubDate => $_->{story_date}, ); } $m->print($rss->as_string); return undef; </%init> <%flags> inherit=>undef </%flags> The top_stories.mc component has both a return value (used for the feed) and HTML output for the sidebar display. If I get the return value through $m->comp(), then output just the feed and "return" before the end of the <%init> block, the component's HTML output is inserted before my feed xml, thus breaking it. However if I use a {store=>\my $discard} then output is suppressed. Is this the expected behavior? Why does the HTML appear at all when the only print() call is with the feed data? Thanks, ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users