test: middleware/template

This commit is contained in:
DIYgod
2019-01-31 11:45:00 +08:00
parent 5daa65673b
commit 0a62389eaa
6 changed files with 90 additions and 13 deletions

View File

@@ -17,7 +17,7 @@
</author>
{{if contributor }}
{{ each contributor }}
{{ each contributor }}
<contributor>
<name><![CDATA[{{@ $value }}]]></name>
</contributor>
@@ -37,13 +37,13 @@
<id>{{ $e.id || $e.link }}</id>
<title><![CDATA[{{@ $e.title }}]]></title>
<published>{{ $e.published || $e.updated }}</published>
<published>{{ $e.pubDate || $e.updated }}</published>
<updated>{{ $e.updated }}</updated>
{{ if $e.author }}
<author>
<name><![CDATA[{{@ $e.author || 'RSSHub' }}]]></name>
</author>
</author>
{{ /if }}
<link href="{{ $e.link }}" />
@@ -65,7 +65,7 @@
<category term="{{ $c }}"></category>
{{ /each }}
{{ /if }}
</entry>
{{ /each }}