Added more examples.

Structure.
This commit is contained in:
Niels Serup
2011-07-15 15:15:12 +02:00
parent 6f4c996774
commit 30f981823d
7 changed files with 20 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
<!--@exec
page.title = html_escape_transform(run_macros(page.title))
page.summary = html_escape_transform(run_macros(page.summary))
page.title = run_macros(page.title)
page.summary = run_macros(page.summary)
@--><?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN'
'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>
@@ -34,8 +34,8 @@ page.summary = html_escape_transform(run_macros(page.summary))
<meta name='DCTERMS.description' content='<!--@eval page.summary@-->' />
<meta name='DCTERMS.creator' content='Niels Serup' />
<meta name='DCTERMS.format' content='application/xhtml+xml' />
<meta name='DCTERMS.created' content='<!--@eval page.created@-->' />
<meta name='DCTERMS.modified' content='<!--@eval page.modified@-->' />
<meta name='DCTERMS.created' content='<!--@eval page.created_rfc3339@-->' />
<meta name='DCTERMS.modified' content='<!--@eval page.modified_rfc3339@-->' />
<meta name='DCTERMS.language' content='en' />
<meta name='DCTERMS.isPartOf' content='http://metanohi.org/' />
<meta name='DCTERMS.isVersionOf' content='<!--@eval page.core_url@-->' />
@@ -44,9 +44,9 @@ page.summary = html_escape_transform(run_macros(page.summary))
<meta name='DCTERMS.audience' content='individuals' />
<!--@exec
if page.licenses:
for x in page.licenses:
for x in filter(lambda x: x.url, page.licenses):
print("""<link rel='copyright' href='{x.url}' />
<meta name='DCTERMS.license' content='{x.url}' />""").format(x=x)@-->
<meta name='DCTERMS.license' content='{x.url}' />""".format(x=x))@-->
<meta name='robots' content='ALL' />
<link rel='icon' type='image/png' href='/favicon.png' />
<!--