Modify inner variable shortcode-template explanation (#1985)

This commit is contained in:
ginaesps 2023-03-23 12:05:56 -06:00 committed by GitHub
parent a54927a7f4
commit d2e594cbcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ most helpful when the condition depends on either of the values, or both:
If a closing shortcode is used, the `.Inner` variable will be populated with the content between the opening and closing shortcodes. If a closing shortcode is required, you can check the length of `.Inner` as an indicator of its existence. If a closing shortcode is used, the `.Inner` variable will be populated with the content between the opening and closing shortcodes. If a closing shortcode is required, you can check the length of `.Inner` as an indicator of its existence.
A shortcode with content declared via the `.Inner` variable can also be declared without the content and without the closing by using the self-closing syntax: A shortcode with content declared via the `.Inner` variable can also be declared without the content and without the closing tag by using the self-closing syntax:
```go-html-template ```go-html-template
{{</* innershortcode /*/>}} {{</* innershortcode /*/>}}