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

Unified Diff: tests/test_site/pages/sitemap.tmpl

Issue 29370597: Issue 4687 - Add Context Function get_pages_metadata to Test Site (Closed)
Patch Set: Created Jan. 2, 2017, 9:30 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/test_site/pages/sitemap.tmpl
===================================================================
new file mode 100644
--- /dev/null
+++ b/tests/test_site/pages/sitemap.tmpl
@@ -0,0 +1,17 @@
+template = empty
+product = foo
+title = test_metadata
+tags = popular, bar
+<h1> Unfiltered </h1>
+<ul>
+ {%- for unfiltered_page in get_pages_metadata() -%}
+<li>{{ unfiltered_page }} </li>
+{%- endfor %}
+</ul>
+
+<h1> Filtered </h1>
+<ul>
+{%- for page in get_pages_metadata({'tags': 'popular, bar'}) -%}
Vasily Kuznetsov 2017/01/11 10:52:44 I see you changed the API a little from what is de
Jon Sonesen 2017/01/11 17:37:04 Acknowledged.
+<li> {{ page }} </li>
+{%- endfor %}
+</ul>

Powered by Google App Engine
This is Rietveld