Mercurial > piecrust2
view tests/bakes/test_linker.yaml @ 1175:d0f86d9a9d40
wsgi: Better logging for the admin app.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 21 May 2020 21:55:41 -0700 |
parents | bcb7bd54d347 |
children |
line wrap: on
line source
--- in: pages/foo.html: | {%for c in family.children%} {{c.title}} {%endfor%} outfiles: foo.html: '' --- in: pages/foo.html: | {%for c in family.children|sort(attribute='title')-%} {{c.title}} {%endfor%} pages/foo/one.html: | --- title: One --- pages/foo/two.html: | --- title: Two --- outfiles: foo.html: | One Two --- in: pages/foo.html: | --- title: Foo date: '2010/01/07' --- {%for c in family.siblings|sort(attribute='title')-%} {{c.title}}{%if c.is_self%} SELFIE!{%endif%} {%endfor%} pages/bar.html: | --- title: Bar date: '2010/01/08' --- pages/other.html: | --- title: Other date: '2010/01/06' --- outfiles: foo.html: | Bar Foo SELFIE! Other --- in: pages/foo.html: "---\ntitle: Foo\n---\n" pages/foo/one.html: | {{family.parent.url}} {{family.parent.title}} outfiles: foo/one.html: /foo.html Foo --- in: pages/foo.html: "---\ntitle: Foo\n---\n" pages/foo/bar.html: "---\ntitle: Bar\n---\n" pages/foo/bar/one.html: | {{family.parent.url}} {{family.parent.title}} {{family.ancestors[1].url}} {{family.ancestors[1].title}} outfiles: foo/bar/one.html: | /foo/bar.html Bar /foo.html Foo --- in: pages/foo.html: "---\ntitle: Foo\n---\n" pages/foo/bar.html: "---\ntitle: Bar\n---\n" pages/foo/bar/one.html: | {% for p in family.ancestors -%} {{p.url}} {{p.title}} {% endfor %} outfiles: foo/bar/one.html: | /foo/bar.html Bar /foo.html Foo