git.iko.soy/typeable/pandoc
on master help sign in
MANUAL: clarify partial naming (#6476)
commitf91121fe56d7c5647bcad118953f41212fd38f8c authorMauro Bieg <mb21@users.noreply.github.com> dateSun 21 Jun 2020, 19:29 (6 years ago) parentf5d7d41
1 file changed+14−6
MANUAL.txt+14−6
MANUAL.txt+14−6
@@ -1816,17 +1816,25 @@ ${ endfor }
18161816### Partials
18171817
18181818Partials (subtemplates stored in different files) may be
1819−included using the syntax
1819+included by using the name of the partial, followed
1820+by `()`, for example:
18201821
18211822```
1822−${ boilerplate() }
1823+${ styles() }
18231824```
18241825
18251826Partials will be sought in the directory containing
1826−the main template, and will be assumed to have the
1827−same extension as the main template if they lack
1828−an explicit extension. (If the partials are not
1829−found here, they will also be sought in the `templates`
1827+the main template. The file name will be assumed to
1828+have the same extension as the main template if it
1829+lacks an extension. When calling the partial, the
1830+full name including file extension can also be used:
1831+
1832+```
1833+${ styles.html() }
1834+```
1835+
1836+(If a partial is not found in the directory of the
1837+template, it will also be sought in the `templates`
18301838subdirectory of the user data directory.)
18311839
18321840Partials may optionally be applied to variables using