$def with (user, pack)
<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0">
  <channel>
    <title>$user.get_persona()'s TF2 Backpack</title>
    <generator>$product_name</generator>
    <link>${instance.homedomain}${virtual_root}</link>
  $ items = pack.get_items()
  $items.reverse()
  $for item in items:
      <item>
        $ permalink = "{0}{1}item/{2}/{3}".format(instance.homedomain, virtual_root, user.get_id64(), pack.get_item_id(item))
        <description>Level $pack.get_item_level(item) $pack.get_item_type(item)</description>
        <title>$qualitydict[pack.get_item_quality(item)["str"]] $pack.get_item_name(item)</title>
        <link>$permalink</link>
        <guid isPermaLink="true">$permalink</guid>
      </item>
  </channel>
</rss>

$def with (user, pack)
<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0">
  <channel>
    <title>$user.get_persona()'s TF2 Backpack</title>
    <generator>$product_name</generator>
    <link>${instance.homedomain}${virtual_root}</link>
  $ items = pack.get_items()
  $items.reverse()
  $for item in items:
      <item>
        $ permalink = "{0}{1}item/{2}/{3}".format(instance.homedomain, virtual_root, user.get_id64(), pack.get_item_id(item))
        $ level = pack.get_item_level(item)
        $ type = pack.get_item_type(item)
        $ quality = pack.get_item_quality(item)
        $ name = pack.get_item_name(item)
        <description>Level $level $type</description>
        <title>$qualitydict[quality["str"]] $name</title>
        <link>$permalink</link>
        <guid isPermaLink="true">$permalink</guid>
        <info xmlns="urn:agg.org:optf2">
          $ attrs = pack.get_item_attributes(item)
          <attributes>
            $for attr in attrs:
                $ desc = pack.format_attribute_description(attr)
                $ attrtype = pack.get_attribute_type(attr)
                <$attrtype>$desc</$attrtype>
          </attributes>
          <image type="small">$pack.get_item_image(item, pack.ITEM_IMAGE_SMALL)</image>
          <image type="large">$pack.get_item_image(item, pack.ITEM_IMAGE_LARGE)</image>
          <level>$level</level>
          <type>$type</type>
          <quality optf2="$qualitydict[quality['str']]" pretty="$quality['prettystr']" enum="$quality['id']" normal="$quality['str']"/>
          <name>$name</name>
        </info>
      </item>
  </channel>
</rss>

Add some meta-data to the RSS feed.
Add some meta-data to the RSS feed.

This should make it easier for people that want to have badges
or whatever people tend to do with this stuff on their pages...
