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: Preserve lines in metadata, fix sort in sitemap.tmpl Created March 26, 2018, 2:28 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/metadata_json.tmpl
===================================================================
new file mode 100644
--- /dev/null
+++ b/tests/test_site/pages/metadata_json.tmpl
@@ -0,0 +1,14 @@
+{
+ "title": "Awesome page",
+ "template": "empty",
+ "image": {
+ "url": "/img/awesome.jpg",
+ "height": 768
+ },
+ "tags": ["awesome", "news"]
+ }
+
+{{ title }}
+{{ image['height'] }}
+<!-- Test comment -->
+{{ tags[0] }}

Powered by Google App Engine
This is Rietveld