SP/web2py/applications/welcome/views/generic.rss

11 lines
364 B
XML
Raw Normal View History

2018-10-25 15:33:07 +00:00
{{
###
# response._vars contains the dictionary returned by the controller action
# for this to work the action must return something like
#
# dict(title=...,link=...,description=...,created_on='...',items=...)
#
# items is a list of dictionaries each with title, link, description, pub_date.
###
from gluon.serializers import rss}}{{=XML(rss(response._vars))}}