Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: tests/test_site/pages/sitemap.tmpl

Issue 29370597: Issue 4687 - Add Context Function get_pages_metadata to Test Site (Closed)
Patch Set: addresses read_page usage, updates return data to include page key value Created Jan. 11, 2017, 6:41 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 template = empty
2 product = foo
3 title = test_metadata
4 tags = popular, bar
5 <h1> Unfiltered </h1>
6 <ul>
7 {%- for unfiltered_page in get_pages_metadata() -%}
8 <li>{{ unfiltered_page }} </li>
9 {%- endfor %}
10 </ul>
11
12 <h1> Filtered </h1>
13 <ul>
14 {%- for page in get_pages_metadata({'tags': 'popular, bar'}) -%}
15 <li> {{ page }} </li>
16 {%- endfor %}
17 </ul>
OLDNEW

Powered by Google App Engine
This is Rietveld