changeset 8428:5ccca71775e1

atom/rss: use newer template syntax everywhere
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 15 May 2009 10:46:52 +0200
parents cebdfdcc3e42
children 4bf90ee588b9
files templates/atom/changelog.tmpl templates/atom/changelogentry.tmpl templates/atom/filelog.tmpl templates/atom/map templates/atom/tagentry.tmpl templates/atom/tags.tmpl templates/rss/changelog.tmpl templates/rss/changelogentry.tmpl templates/rss/filelog.tmpl templates/rss/filelogentry.tmpl templates/rss/tagentry.tmpl templates/rss/tags.tmpl
diffstat 12 files changed, 48 insertions(+), 48 deletions(-) [+]
line wrap: on
line diff
--- a/templates/atom/changelog.tmpl	Fri May 15 10:46:39 2009 +0200
+++ b/templates/atom/changelog.tmpl	Fri May 15 10:46:52 2009 +0200
@@ -1,10 +1,10 @@
-#header#
+{header}
  <!-- Changelog -->
  <id>{urlbase}{url}</id>
  <link rel="self" href="{urlbase}{url}atom-log"/>
  <link rel="alternate" href="{urlbase}{url}"/>
- <title>#repo|escape# Changelog</title>
- #latestentry%feedupdated#
+ <title>{repo|escape} Changelog</title>
+ {latestentry%feedupdated}
 
-#entries%changelogentry#
+{entries%changelogentry}
 </feed>
--- a/templates/atom/changelogentry.tmpl	Fri May 15 10:46:39 2009 +0200
+++ b/templates/atom/changelogentry.tmpl	Fri May 15 10:46:52 2009 +0200
@@ -1,16 +1,16 @@
  <entry>
-  <title>#desc|strip|firstline|strip|escape|nonempty#</title>
+  <title>{desc|strip|firstline|strip|escape|nonempty}</title>
   <id>{urlbase}{url}#changeset-{node}</id>
   <link href="{urlbase}{url}rev/{node}"/>
   <author>
-   <name>#author|person|escape#</name>
-   <email>#author|email|obfuscate#</email>
+   <name>{author|person|escape}</name>
+   <email>{author|email|obfuscate}</email>
   </author>
-  <updated>#date|rfc3339date#</updated>
-  <published>#date|rfc3339date#</published>
+  <updated>{date|rfc3339date}</updated>
+  <published>{date|rfc3339date}</published>
   <content type="xhtml">
    <div xmlns="http://www.w3.org/1999/xhtml">
-    <pre xml:space="preserve">#desc|escape|nonempty#</pre>
+    <pre xml:space="preserve">{desc|escape|nonempty}</pre>
    </div>
   </content>
  </entry>
--- a/templates/atom/filelog.tmpl	Fri May 15 10:46:39 2009 +0200
+++ b/templates/atom/filelog.tmpl	Fri May 15 10:46:52 2009 +0200
@@ -1,8 +1,8 @@
-#header#
+{header}
  <id>{urlbase}{url}atom-log/tip/{file|escape}</id>
  <link rel="self" href="{urlbase}{url}atom-log/tip/{file|escape}"/>
- <title>#repo|escape#: #file|escape# history</title>
- #latestentry%feedupdated#
+ <title>{repo|escape}: {file|escape} history</title>
+ {latestentry%feedupdated}
 
-#entries%changelogentry#
+{entries%changelogentry}
 </feed>
--- a/templates/atom/map	Fri May 15 10:46:39 2009 +0200
+++ b/templates/atom/map	Fri May 15 10:46:52 2009 +0200
@@ -1,5 +1,5 @@
 default = 'changelog'
-feedupdated = '<updated>#date|rfc3339date#</updated>'
+feedupdated = '<updated>{date|rfc3339date}</updated>'
 mimetype = 'application/atom+xml; charset={encoding}'
 header = header.tmpl
 changelog = changelog.tmpl
--- a/templates/atom/tagentry.tmpl	Fri May 15 10:46:39 2009 +0200
+++ b/templates/atom/tagentry.tmpl	Fri May 15 10:46:52 2009 +0200
@@ -1,8 +1,8 @@
  <entry>
-  <title>#tag|escape#</title>
+  <title>{tag|escape}</title>
   <link rel="alternate" href="{urlbase}{url}rev/{node}"/>
   <id>{urlbase}{url}#tag-{node}</id>
-  <updated>#date|rfc3339date#</updated>
-  <published>#date|rfc3339date#</published>
-  <content type="text">#tag|strip|escape#</content>
+  <updated>{date|rfc3339date}</updated>
+  <published>{date|rfc3339date}</published>
+  <content type="text">{tag|strip|escape}</content>
  </entry>
--- a/templates/atom/tags.tmpl	Fri May 15 10:46:39 2009 +0200
+++ b/templates/atom/tags.tmpl	Fri May 15 10:46:52 2009 +0200
@@ -1,11 +1,11 @@
-#header#
+{header}
  <id>{urlbase}{url}</id>
  <link rel="self" href="{urlbase}{url}atom-tags"/>
  <link rel="alternate" href="{urlbase}{url}tags"/>
- <title>#repo|escape#: tags</title>
- <summary>#repo|escape# tag history</summary>
+ <title>{repo|escape}: tags</title>
+ <summary>{repo|escape} tag history</summary>
  <author><name>Mercurial SCM</name></author>
- #latestentry%feedupdated#
+ {latestentry%feedupdated}
 
-#entriesnotip%tagentry#
+{entriesnotip%tagentry}
 </feed>
--- a/templates/rss/changelog.tmpl	Fri May 15 10:46:39 2009 +0200
+++ b/templates/rss/changelog.tmpl	Fri May 15 10:46:52 2009 +0200
@@ -1,6 +1,6 @@
-#header#
-    <title>#repo|escape# Changelog</title>
-    <description>#repo|escape# Changelog</description>
-    #entries%changelogentry#
+{header}
+    <title>{repo|escape} Changelog</title>
+    <description>{repo|escape} Changelog</description>
+    {entries%changelogentry}
   </channel>
 </rss>
\ No newline at end of file
--- a/templates/rss/changelogentry.tmpl	Fri May 15 10:46:39 2009 +0200
+++ b/templates/rss/changelogentry.tmpl	Fri May 15 10:46:52 2009 +0200
@@ -1,7 +1,7 @@
 <item>
-    <title>#desc|strip|firstline|strip|escape#</title>
+    <title>{desc|strip|firstline|strip|escape}</title>
     <guid isPermaLink="true">{urlbase}{url}rev/{node|short}</guid>
-    <description><![CDATA[#desc|strip|escape|addbreaks|nonempty#]]></description>
-    <author>#author|obfuscate#</author>
-    <pubDate>#date|rfc822date#</pubDate>
+    <description><![CDATA[{desc|strip|escape|addbreaks|nonempty}]]></description>
+    <author>{author|obfuscate}</author>
+    <pubDate>{date|rfc822date}</pubDate>
 </item>
--- a/templates/rss/filelog.tmpl	Fri May 15 10:46:39 2009 +0200
+++ b/templates/rss/filelog.tmpl	Fri May 15 10:46:52 2009 +0200
@@ -1,6 +1,6 @@
-#header#
-    <title>#repo|escape#: #file|escape# history</title>
-    <description>#file|escape# revision history</description>
-    #entries%filelogentry#
+{header}
+    <title>{repo|escape}: {file|escape} history</title>
+    <description>{file|escape} revision history</description>
+    {entries%filelogentry}
   </channel>
 </rss>
--- a/templates/rss/filelogentry.tmpl	Fri May 15 10:46:39 2009 +0200
+++ b/templates/rss/filelogentry.tmpl	Fri May 15 10:46:52 2009 +0200
@@ -1,7 +1,7 @@
 <item>
-    <title>#desc|strip|firstline|strip|escape#</title>
-    <link>{urlbase}{url}log{#node|short#}/{file|urlescape}</link>
-    <description><![CDATA[#desc|strip|escape|addbreaks|nonempty#]]></description>
-    <author>#author|obfuscate#</author>
-    <pubDate>#date|rfc822date#</pubDate>
+    <title>{desc|strip|firstline|strip|escape}</title>
+    <link>{urlbase}{url}log{{node|short}}/{file|urlescape}</link>
+    <description><![CDATA[{desc|strip|escape|addbreaks|nonempty}]]></description>
+    <author>{author|obfuscate}</author>
+    <pubDate>{date|rfc822date}</pubDate>
 </item>
--- a/templates/rss/tagentry.tmpl	Fri May 15 10:46:39 2009 +0200
+++ b/templates/rss/tagentry.tmpl	Fri May 15 10:46:52 2009 +0200
@@ -1,6 +1,6 @@
 <item>
-    <title>#tag|escape#</title>
+    <title>{tag|escape}</title>
     <link>{urlbase}{url}rev/{node|short}</link>
-    <description><![CDATA[#tag|strip|escape|addbreaks#]]></description>
-    <pubDate>#date|rfc822date#</pubDate>
+    <description><![CDATA[{tag|strip|escape|addbreaks}]]></description>
+    <pubDate>{date|rfc822date}</pubDate>
 </item>
--- a/templates/rss/tags.tmpl	Fri May 15 10:46:39 2009 +0200
+++ b/templates/rss/tags.tmpl	Fri May 15 10:46:52 2009 +0200
@@ -1,6 +1,6 @@
-#header#
-    <title>#repo|escape#: tags </title>
-    <description>#repo|escape# tag history</description>
-    #entriesnotip%tagentry#
+{header}
+    <title>{repo|escape}: tags </title>
+    <description>{repo|escape} tag history</description>
+    {entriesnotip%tagentry}
   </channel>
 </rss>