From f91121fe56d7c5647bcad118953f41212fd38f8c Mon Sep 17 00:00:00 2001 From: Mauro Bieg Date: Sun, 21 Jun 2020 19:29:55 +0200 Subject: [PATCH] MANUAL: clarify partial naming (#6476) --- MANUAL.txt | 20 ++++++++++++++------ 1 file 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