output: Rework the base template logic
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 19 Mar 2017 20:09:31 +0000 (21:09 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 27 Mar 2017 13:43:56 +0000 (15:43 +0200)
commitbaa29f6534fcd324dbade7dd6c32c90547e3fa4f
tree71a7524c25365cfc4a7cc1bbaab9d63988525d5e
parentc7c6b47ba8bb098cf9fac778f7818afba40a1e2f
output: Rework the base template logic

Extract the logic to a testable function and add support for custom output types.

Fixes #2995
helpers/pathspec.go
hugolib/page.go
hugolib/site_render.go
output/layout_base.go [new file with mode: 0644]
output/layout_base_test.go [new file with mode: 0644]
output/outputFormat.go
output/outputFormat_test.go
tpl/tplimpl/template.go