Add reference to parent shortcode

Fixes #1936
This commit is contained in:
Bjørn Erik Pedersen committed 2016-03-09 11:06:40 +01:00
1 parent 257efd2c6c
commit e101a2dc7a
1 file changed
+2
+2
View File
@@ -273,6 +273,8 @@ such as `{{ if .IsNamedParams }}...{{ else }}...{{ end }}`. See the
You can also use the variable `.Page` to access all the normal [Page Variables](/templates/variables/).
A shortcodes can be nested. In a nested shortcode you can access the parent shortcode context with `.Parent`. This can be very useful for inheritance of common shortcode parameters from the root.
## Single Positional Example: youtube
{{</* youtube 09jf3ow9jfw */>}}