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

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

Issue 29659605: Issue 6231 - Add tests for translation string substitution (Closed)
Patch Set: Add tests for different types of pages; also for includes and templates Created Jan. 12, 2018, 7:53 p.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
===================================================================
--- a/tests/test_site/pages/sitemap.tmpl
+++ b/tests/test_site/pages/sitemap.tmpl
@@ -1,16 +1,16 @@
template = empty
product = foo
title = test_metadata
tags = [popular, bar]
<h1> Unfiltered </h1>
<ul>
- {%- for unfiltered_page in get_pages_metadata()|sort -%}
- <li>title : {{ unfiltered_page['page']}} </li>
+{%- for unfiltered_page in get_pages_metadata()|sort %}
+ <li>title : {{ unfiltered_page['page']}} </li>
{%- endfor %}
</ul>
<h1> Filtered </h1>
<ul>
{%- for filtered_page in get_pages_metadata({'tags': ['popular', 'bar']})|sort -%}
<li>title : {{ filtered_page['page'] }} </li>
{%- endfor %}

Powered by Google App Engine
This is Rietveld