optimise whitespace in feed templates

master
Joey Hess 2010-02-14 19:23:09 -05:00
parent 8805d6fff2
commit 21997387d4
3 changed files with 74 additions and 74 deletions

View File

@ -1,48 +1,48 @@
<entry>
<title><TMPL_VAR TITLE></title>
<TMPL_IF NAME="GUID">
<id><TMPL_VAR GUID></id>
<TMPL_ELSE>
<id><TMPL_VAR URL></id>
</TMPL_IF>
<TMPL_IF NAME="GUID">
<id><TMPL_VAR GUID></id>
<TMPL_ELSE>
<id><TMPL_VAR URL></id>
</TMPL_IF>
<link href="<TMPL_VAR PERMALINK>"/>
<TMPL_IF NAME="AUTHOR">
<author><name><TMPL_VAR AUTHOR ESCAPE=HTML></name></author>
</TMPL_IF>
<TMPL_IF NAME="COPYRIGHT">
<rights type="html" xml:lang="en">
<TMPL_IF NAME="LICENSE">
<TMPL_VAR LICENSE ESCAPE=HTML>
<TMPL_VAR COPYRIGHT ESCAPE=HTML>
<TMPL_ELSE>
<TMPL_VAR COPYRIGHT ESCAPE=HTML>
</TMPL_IF>
</rights>
<TMPL_ELSE>
<TMPL_IF NAME="LICENSE">
<rights type="html" xml:lang="en">
<TMPL_VAR LICENSE ESCAPE=HTML>
</rights>
</TMPL_IF>
</TMPL_IF>
<TMPL_IF NAME="CATEGORIES">
<TMPL_LOOP NAME="CATEGORIES">
<category term="<TMPL_VAR CATEGORY>" />
</TMPL_LOOP>
</TMPL_IF>
<TMPL_IF NAME="AUTHOR">
<author><name><TMPL_VAR AUTHOR ESCAPE=HTML></name></author>
</TMPL_IF>
<TMPL_IF NAME="COPYRIGHT">
<rights type="html" xml:lang="en">
<TMPL_IF NAME="LICENSE">
<TMPL_VAR LICENSE ESCAPE=HTML>
<TMPL_VAR COPYRIGHT ESCAPE=HTML>
<TMPL_ELSE>
<TMPL_VAR COPYRIGHT ESCAPE=HTML>
</TMPL_IF>
</rights>
<TMPL_ELSE>
<TMPL_IF NAME="LICENSE">
<rights type="html" xml:lang="en">
<TMPL_VAR LICENSE ESCAPE=HTML>
</rights>
</TMPL_IF>
</TMPL_IF>
<TMPL_IF NAME="CATEGORIES">
<TMPL_LOOP NAME="CATEGORIES">
<category term="<TMPL_VAR CATEGORY>" />
</TMPL_LOOP>
</TMPL_IF>
<updated><TMPL_VAR MDATE_3339></updated>
<published><TMPL_VAR CDATE_3339></published>
<TMPL_IF NAME="ENCLOSURE">
<link rel="enclosure" type="<TMPL_VAR TYPE>" href="<TMPL_VAR ENCLOSURE>" length="<TMPL_VAR LENGTH>" />
<TMPL_ELSE>
<content type="html" xml:lang="en">
<TMPL_VAR CONTENT ESCAPE=HTML>
</content>
</TMPL_IF>
<TMPL_IF NAME="COMMENTSURL">
<TMPL_IF NAME="ENCLOSURE">
<link rel="enclosure" type="<TMPL_VAR TYPE>" href="<TMPL_VAR ENCLOSURE>" length="<TMPL_VAR LENGTH>" />
<TMPL_ELSE>
<content type="html" xml:lang="en">
<TMPL_VAR CONTENT ESCAPE=HTML>
</content>
</TMPL_IF>
<TMPL_IF NAME="COMMENTSURL">
<link rel="comments" href="<TMPL_VAR NAME="COMMENTSURL">" type="text/html" />
</TMPL_IF>
<TMPL_IF NAME="ATOMCOMMENTSURL">
</TMPL_IF>
<TMPL_IF NAME="ATOMCOMMENTSURL">
<link rel="comments" href="<TMPL_VAR NAME="ATOMCOMMENTSURL">" type="application/atom+xml" />
</TMPL_IF>
</TMPL_IF>
</entry>

View File

@ -6,31 +6,31 @@
<link href="<TMPL_VAR FEEDURL>" rel="self" type="application/atom+xml"/>
<author>
<TMPL_IF NAME="AUTHOR">
<name><TMPL_VAR AUTHOR></name>
<name><TMPL_VAR AUTHOR></name>
<TMPL_ELSE>
<name><TMPL_VAR WIKINAME></name>
<name><TMPL_VAR WIKINAME></name>
</TMPL_IF>
</author>
<TMPL_IF NAME="COPYRIGHT">
<rights type="html" xml:lang="en">
<TMPL_IF NAME="LICENSE">
<TMPL_VAR LICENSE>
<TMPL_VAR COPYRIGHT ESCAPE=HTML>
<TMPL_ELSE>
<TMPL_VAR COPYRIGHT ESCAPE=HTML>
</TMPL_IF>
</rights>
<rights type="html" xml:lang="en">
<TMPL_IF NAME="LICENSE">
<TMPL_VAR LICENSE>
<TMPL_VAR COPYRIGHT ESCAPE=HTML>
<TMPL_ELSE>
<TMPL_IF NAME="LICENSE">
<rights type="html">
<TMPL_VAR LICENSE ESCAPE=HTML>
</rights>
</TMPL_IF>
<TMPL_VAR COPYRIGHT ESCAPE=HTML>
</TMPL_IF>
</rights>
<TMPL_ELSE>
<TMPL_IF NAME="LICENSE">
<rights type="html">
<TMPL_VAR LICENSE ESCAPE=HTML>
</rights>
</TMPL_IF>
</TMPL_IF>
<TMPL_IF NAME="GUID">
<id><TMPL_VAR GUID></id>
<id><TMPL_VAR GUID></id>
<TMPL_ELSE>
<id><TMPL_VAR PAGEURL></id>
<id><TMPL_VAR PAGEURL></id>
</TMPL_IF>
<subtitle type="html"><TMPL_VAR FEEDDESC ESCAPE=HTML></subtitle>
<generator uri="http://ikiwiki.info/" version="<TMPL_VAR VERSION>">ikiwiki</generator>

View File

@ -1,29 +1,29 @@
<item>
<TMPL_IF NAME="AUTHOR">
<TMPL_IF NAME="AUTHOR">
<title><TMPL_VAR AUTHOR ESCAPE=HTML>: <TMPL_VAR TITLE></title>
<dcterms:creator><TMPL_VAR AUTHOR ESCAPE=HTML></dcterms:creator>
<TMPL_ELSE>
<TMPL_ELSE>
<title><TMPL_VAR TITLE></title>
</TMPL_IF>
<TMPL_IF NAME="GUID">
<guid isPermaLink="no"><TMPL_VAR GUID></guid>
<TMPL_ELSE>
<guid><TMPL_VAR URL></guid>
</TMPL_IF>
</TMPL_IF>
<TMPL_IF NAME="GUID">
<guid isPermaLink="no"><TMPL_VAR GUID></guid>
<TMPL_ELSE>
<guid><TMPL_VAR URL></guid>
</TMPL_IF>
<link><TMPL_VAR PERMALINK></link>
<TMPL_IF NAME="CATEGORIES">
<TMPL_LOOP NAME="CATEGORIES">
<TMPL_IF NAME="CATEGORIES">
<TMPL_LOOP NAME="CATEGORIES">
<category><TMPL_VAR CATEGORY></category>
</TMPL_LOOP>
</TMPL_IF>
</TMPL_LOOP>
</TMPL_IF>
<pubDate><TMPL_VAR CDATE_822></pubDate>
<dcterms:modified><TMPL_VAR MDATE_3339></dcterms:modified>
<TMPL_IF NAME="ENCLOSURE">
<TMPL_IF NAME="ENCLOSURE">
<enclosure url="<TMPL_VAR ENCLOSURE>" type="<TMPL_VAR TYPE>" length="<TMPL_VAR LENGTH>" />
<TMPL_ELSE>
<TMPL_ELSE>
<description><TMPL_VAR CONTENT ESCAPE=HTML></description>
</TMPL_IF>
<TMPL_IF NAME="COMMENTSURL">
</TMPL_IF>
<TMPL_IF NAME="COMMENTSURL">
<comments><TMPL_VAR NAME="COMMENTSURL"></comments>
</TMPL_IF>
</TMPL_IF>
</item>