diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-05-06 20:15:28 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-05-13 22:44:15 +0300 |
commit | af72db806f2c1c0bf1dfe5832275c41eeba89906 (patch) | |
tree | a1bc9c7d09836073a811a1b395b7756727fdb210 /tpl/template.go | |
parent | e951d65771ca299aa899e91bfe00411a5ada8f19 (diff) |
hugolib: Handle shortcode per output format
This commit allows shortcode per output format, a typical use case would be the special AMP media tags.
Note that this will only re-render the "overridden" shortcodes and only in pages where these are used, so performance in the normal case should not suffer.
Closes #3220
Diffstat (limited to 'tpl/template.go')
-rw-r--r-- | tpl/template.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tpl/template.go b/tpl/template.go index 9fbf6b7b8..aa46a8ac2 100644 --- a/tpl/template.go +++ b/tpl/template.go @@ -58,6 +58,11 @@ type TemplateExecutor interface { Tree() string } +// TemplateDebugger prints some debug info to stdoud. +type TemplateDebugger interface { + Debug() +} + // TemplateAdapter implements the TemplateExecutor interface. type TemplateAdapter struct { Template |