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

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

Issue 29516687: Issue 4488 - Add support for JSON page front matter (Closed) Base URL: https://hg.adblockplus.org/cms
Patch Set: Removed the sitemap sort attribute Created April 19, 2018, 3: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
« no previous file with comments | « tests/expected_output/en/sitemap ('k') | tests/test_site/pages/metadata_json_comment.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/test_site/pages/metadata_json.tmpl
===================================================================
new file mode 100644
--- /dev/null
+++ b/tests/test_site/pages/metadata_json.tmpl
@@ -0,0 +1,13 @@
+{
+ "title": "Awesome page",
+ "image": {
+ "url": "/img/awesome.jpg",
+ "height": 768
+ },
+ "tags": ["awesome", "news"]
+}
+
+{{ title }}
+{{ image['height'] }}
+<!-- Test comment -->
+{{ tags[0] }}
« no previous file with comments | « tests/expected_output/en/sitemap ('k') | tests/test_site/pages/metadata_json_comment.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld