This commit is contained in:
hiro 2019-09-02 18:43:04 +02:00
parent 9f2aa76623
commit 1375171fb6
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ root = etree.fromstring(content)
items = root.findall('channel/item')
file_object = open('../../templates/stream.html', 'w')
for entry in items:
title = entry.findtext('title'))
link = entry.findtext('link'))
title = entry.findtext('title')
link = entry.findtext('link')
file_object.write("<h3><a href=\"" + link +"\">" + title + "</a></h3>")
file.close()

View File

@ -10,7 +10,7 @@ setup(
py_modules=['lektor_xml_to_html'],
entry_points={
'lektor.plugins': [
'xml-to-html = lektor_xml_to_html:XMLToHtmlPlugin',
'xml-to-html = lektor_xml_to_html:XmlToHtmlPlugin',
]
}
)