view tests/bakes/test_linker.yaml @ 983:7fe1151595bf

tests: Fix non-determinism in linker tests.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 30 Oct 2017 18:58:28 -0700
parents 45ad976712ec
children bcb7bd54d347
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-%}
        {{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-%}
        {{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