diff options
author | Mauro Bieg <mb21@users.noreply.github.com> | 2020-06-21 19:29:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-21 10:29:55 -0700 |
commit | f91121fe56d7c5647bcad118953f41212fd38f8c (patch) | |
tree | 3c7e5b701cba4fc22c87ebf3d7ab00efd329d33e /MANUAL.txt | |
parent | f5d7d41cbdf02bdca04115bbe527b3a58ff67ea5 (diff) | |
download | pandoc-f91121fe56d7c5647bcad118953f41212fd38f8c.tar.gz |
MANUAL: clarify partial naming (#6476)
Diffstat (limited to 'MANUAL.txt')
-rw-r--r-- | MANUAL.txt | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/MANUAL.txt b/MANUAL.txt index 2a8e5fa3e..b0df98acc 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -1816,17 +1816,25 @@ ${ endfor } ### Partials Partials (subtemplates stored in different files) may be -included using the syntax +included by using the name of the partial, followed +by `()`, for example: ``` -${ boilerplate() } +${ styles() } ``` Partials will be sought in the directory containing -the main template, and will be assumed to have the -same extension as the main template if they lack -an explicit extension. (If the partials are not -found here, they will also be sought in the `templates` +the main template. The file name will be assumed to +have the same extension as the main template if it +lacks an extension. When calling the partial, the +full name including file extension can also be used: + +``` +${ styles.html() } +``` + +(If a partial is not found in the directory of the +template, it will also be sought in the `templates` subdirectory of the user data directory.) Partials may optionally be applied to variables using |