diff options
Diffstat (limited to 'tpl/template_info.go')
-rw-r--r-- | tpl/template_info.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tpl/template_info.go b/tpl/template_info.go index 8568f46f0..be0566958 100644 --- a/tpl/template_info.go +++ b/tpl/template_info.go @@ -22,10 +22,17 @@ type Info struct { // Set for shortcode templates with any {{ .Inner }} IsInner bool + // Set for partials with a return statement. + HasReturn bool + // Config extracted from template. Config Config } +func (info Info) IsZero() bool { + return info.Config.Version == 0 +} + type Config struct { Version int } |