[v0.1.0] - Reformat

pull/3/head
sgoudham 3 years ago
parent fd56fdf552
commit 22f6981112
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -97,27 +97,44 @@ Arguments to be replaced within the template files should be wrapped in `{}`
# Valid # Valid
{{#template file.txt path=../images author=Goudham }} {{#template
file.txt
path=../images
author=Goudham
}}
# Valid # Valid
// Not recommended but valid {{#template file.txt path=../images author=Goudham}} // Not recommended but valid
{{#template file.txt path=../images author=Goudham}}
# Valid # Valid
// Not recommended but valid {{#template file.txt path=../images author=Goudham }} // Not recommended but valid
{{#template
file.txt
path=../images
author=Goudham
}}
# Invalid # Invalid
// Use {{#include}} for simply including files {{#template file.txt}} // Use {{#include}} for simply including files
{{#template file.txt}}
# Invalid # Invalid
{{#template file.txt path=../images author=Goudham}} {{#template
file.txt
path=../images
author=Goudham}}
# Invalid # Invalid
{{#template file.txt path=../images author=Goudham }} {{#template file.txt
path=../images
author=Goudham
}}
``` ```
## Example ## Example
@ -176,7 +193,11 @@ Some Content...
Some Content... Some Content...
{{#template ../templates/footer.md path=../images authors=Goudham, Hazel }} {{#template
../templates/footer.md
path=../images
authors=Goudham, Hazel
}}
``` ```
After running `mdbook build` with the mdbook-template preprocessor enabled, the files will have dynamic paths to the After running `mdbook build` with the mdbook-template preprocessor enabled, the files will have dynamic paths to the

Loading…
Cancel
Save