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

Delta Between Two Patch Sets: docs/content/includes.md

Issue 29711686: Noissue - Update docs to describe include files metadata override (Closed) Base URL: https://hg.adblockplus.org/cms
Left Patch Set: Created March 1, 2018, 1:52 a.m.
Right Patch Set: actually address P1 comment Created March 2, 2018, 6:08 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 # Include files # 1 # Include files #
2 2
3 The following tag inserts an include file into the page (can be in a different 3 The following tag inserts an include file into the page (can be in a different
4 format): 4 format):
5 5
6 <? include foo ?> 6 <? include foo ?>
7 7
8 Include files should be placed into the `includes` directory of the repository. 8 Include files should be placed into the `includes` directory of the repository.
9 In the case above the contents of `includes/foo.md` or `includes/foo.tmpl` will 9 In the case above the contents of `includes/foo.md` or `includes/foo.tmpl` will
10 be inserted (whichever is present). 10 be inserted (whichever is present).
11 11
12 Also, page front matter (metadata defined at the top of the file) will 12 Also, the metadata variables from the include file are merged with the page meta data
Vasily Kuznetsov 2018/03/01 15:41:21 Maybe better to formulate this as something like "
Jon Sonesen 2018/03/02 00:58:01 Yeah thats much better, thanks. This means that an
Jon Sonesen 2018/03/02 01:10:14 basically add to yours, "this means that a include
13 be overridden by the included file. 13 (with the include file's metadata having priority). This means that a include fi le
14 is capable of things like overriding a page's default template, or title.
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld