Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-05-06 21:15:28 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-05-13 22:44:15 +0300
commitaf72db806f2c1c0bf1dfe5832275c41eeba89906 (patch)
treea1bc9c7d09836073a811a1b395b7756727fdb210 /tpl/template.go
parente951d65771ca299aa899e91bfe00411a5ada8f19 (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.go5
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