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

Unified Diff: docs/content/includes.md

Issue 29711686: Noissue - Update docs to describe include files metadata override (Closed) Base URL: https://hg.adblockplus.org/cms
Patch Set: actually address P1 comment Created March 2, 2018, 6:08 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: docs/content/includes.md
===================================================================
--- a/docs/content/includes.md
+++ b/docs/content/includes.md
@@ -2,9 +2,13 @@
The following tag inserts an include file into the page (can be in a different
format):
<? include foo ?>
Include files should be placed into the `includes` directory of the repository.
In the case above the contents of `includes/foo.md` or `includes/foo.tmpl` will
-be inserted (whichever is present).
+be inserted (whichever is present).
+
+Also, the metadata variables from the include file are merged with the page metadata
+(with the include file's metadata having priority). This means that a include file
+is capable of things like overriding a page's default template, or title.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld