From 06a05457fe49ac20734070ebbf5c5279fd38feee Mon Sep 17 00:00:00 2001 From: sgoudham Date: Tue, 3 May 2022 00:20:18 +0100 Subject: [PATCH] [TEM #2] - Update README.md --- README.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e59eb9..e477dff 100644 --- a/README.md +++ b/README.md @@ -81,18 +81,35 @@ The format is as follows {{#template }} ``` -1. The identifier that this text should be replaced +1. The identifier that tells `mdbook-template` that this text should be replaced by a template 2. The `relative path` to the template file 3. Any arguments that should be substituted within the template file. Arguments should be seperated by whitespace and should be in the `key=value` format. ### Arguments -Arguments to be replaced within the template files should be wrapped in `{{$ ...}}` +Arguments to be replaced within the template files should be wrapped in `[[# ...]]` +The format is as follows + +```text + 1 +[[#]] +``` + +1. The name of the argument ### Default Values +Default values can be set in case some files need dynamic arguments and other don't. +The format is as follows + +```text + 1 2 +[[# ]] +``` +1. The name of the argument +2. The value that this argument should have by default ## Valid Configurations