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 <!--@exec
page.title = html_escape_transform(run_macros(page.title)) page.title = run_macros(page.title)
page.summary = html_escape_transform(run_macros(page.summary)) page.summary = run_macros(page.summary)
@--><?xml version='1.0' encoding='utf-8'?> @--><?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN'
'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'> '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.description' content='<!--@eval page.summary@-->' />
<meta name='DCTERMS.creator' content='Niels Serup' /> <meta name='DCTERMS.creator' content='Niels Serup' />
<meta name='DCTERMS.format' content='application/xhtml+xml' /> <meta name='DCTERMS.format' content='application/xhtml+xml' />
<meta name='DCTERMS.created' content='<!--@eval page.created@-->' /> <meta name='DCTERMS.created' content='<!--@eval page.created_rfc3339@-->' />
<meta name='DCTERMS.modified' content='<!--@eval page.modified@-->' /> <meta name='DCTERMS.modified' content='<!--@eval page.modified_rfc3339@-->' />
<meta name='DCTERMS.language' content='en' /> <meta name='DCTERMS.language' content='en' />
<meta name='DCTERMS.isPartOf' content='http://metanohi.org/' /> <meta name='DCTERMS.isPartOf' content='http://metanohi.org/' />
<meta name='DCTERMS.isVersionOf' content='<!--@eval page.core_url@-->' /> <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' /> <meta name='DCTERMS.audience' content='individuals' />
<!--@exec <!--@exec
if page.licenses: 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}' /> 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' /> <meta name='robots' content='ALL' />
<link rel='icon' type='image/png' href='/favicon.png' /> <link rel='icon' type='image/png' href='/favicon.png' />
<!-- <!--

View File

@ -13,3 +13,6 @@ template template.html
# Convert the static parts of HTML, CSS, and JS files # Convert the static parts of HTML, CSS, and JS files
convert prestatic/*.{css,js} static/ convert prestatic/*.{css,js} static/
convert prestatic/template.html . convert prestatic/template.html .
# Redirects (in site/)
redirect mege projects/mege/

View File

@ -1,4 +1,4 @@
#+title: Test of mege features #+title: Test of basic mege features
#&summary #&summary
Test of many features Test of many features
#& #&

View File

@ -1,5 +1,6 @@
#+title: Directory listing: <@eval page.core_url@> #+title: Directory listing: <@eval page.core_url@>
#&deval #++deval
#+BEGIN_SRC
page.dirlist page.dirlist
#& #+END_SRC

View File

@ -1,7 +1,5 @@
#+title: Error: Page not found #+title: Error: Page not found
The page <@deval repr(page.core_url)@> does not exist. The error was: * <@deval page.error@>
#&block The page <@deval repr(page.core_url)@> does not exist.
<@deval page.error@>
#&

View File

@ -2,6 +2,4 @@
There was an error, most likely due to sloppy programming: There was an error, most likely due to sloppy programming:
#&block
<@deval page.error@> <@deval page.error@>
#&

5
sitespecial/showrevs.org Normal file
View File

@ -0,0 +1,5 @@
#+title: Revisions for <@deval repr(page.path_shown)@>
* Revisions for <@deval repr(page.path_shown)@>
<@deval page.revisions@>