The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Foorum::Manual::HowRSS - How we build RSS system

How we build RSS system

  * we don't use L<XML::RSS> or <XML::Feed> or anything else to build RSS, instead we just use TT2 to produce RSS XML.
  * RSS URL is always add /rss at behind. like:
    # /forum/FoorumLongLive has RSS: /forum/FoorumLongLive/rss
    # /site/popular has RSS: /site/popular/RSS
    # /forum/FoorumLongLive/72 has RSS: /forum/FoorumLongLive/72/rss
  * since URL is so special, we have a stash: $c->stash->{isI<rss>template} = ( $path =~ /\/rss(\/|$)/ ) ? 1 : 0;
    # Root.pm sub end {}. if res->redirect(), we raise RSS error.
    # Root.pm sub end {}. if template is not RSS, raise RSS error.
  * we have RSS and it's based URL in one sub. so it's pretty neat and easy to read.

SEE ALSO Foorum::Manual::RULES