generic.rss 364 B

1234567891011
  1. {{
  2. ###
  3. # response._vars contains the dictionary returned by the controller action
  4. # for this to work the action must return something like
  5. #
  6. # dict(title=...,link=...,description=...,created_on='...',items=...)
  7. #
  8. # items is a list of dictionaries each with title, link, description, pub_date.
  9. ###
  10. from gluon.serializers import rss}}{{=XML(rss(response._vars))}}