From 68ed343bceb1f9bd3b3a60cf2bdebc4fa9f846be Mon Sep 17 00:00:00 2001 From: spekary Date: Wed, 28 Jan 2026 16:31:02 -0800 Subject: [PATCH] Update readme --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index dcf1639..27a3cd3 100644 --- a/README.md +++ b/README.md @@ -371,10 +371,10 @@ inserted into the template at that spot. You can include the `{{` or `{{g` tags force the processor into the text or go modes if needed. The fragment can be defined any time before it is included, including being defined in other include files. -You can add optional parameters -to a fragment that will be substituted for placeholders when the fragment is used. You can have up to 9 -placeholders ($1 - $9). Parameters should be separated by commas, and can be surrounded by quotes if needed -to have a parameter that has a quote or comma in it. +You can add optional parameters to a fragment that will be substituted for placeholders when the fragment is used. +You can have up to 9 placeholders ($1 - $9). Parameters should be separated by commas, and can be surrounded by quotes or backticks +if needed to pass a parameter that has a quote or comma in it. +If a parameter is not included when using a fragment, an empty value will be substituted for the parameter in the fragment. {{< fragName }} or {{define fragName }} Start a block called "fragName". {{< fragName }} or Start a block called "fragName" that will @@ -389,9 +389,6 @@ to have a parameter that has a quote or comma in it. If you attempt to use a fragment that was not previously defined, GoT will panic and stop compiling, unless you use {{>? or {{put? to include the fragment. -param1, param2, ... are optional parameters that will be substituted for $1, $2, ... in the defined fragment. -If a parameter is not included when using a fragment, an empty value will be substituted for the parameter in the fragment. - The fragment name is NOT surrounded by quotes, and cannot contain any whitespace in the name. Blocks are ended with a `{{end fragName}}` tag. The end tag must be just like that, with no spaces after the fragName.