hugo/tpl/tplimpl
Bjørn Erik Pedersen 1cf29200b4 tplimpl: Allow text partials in HTML templates
Most obvius benefit of this is to include CSS partials with css file suffix into HTML templates.

A valid workaround would be to rename the file `mystyles.html`, but that doesn't work too good for external editors etc.

The css partial is  a method used in some themes before Hugo 0.20, but then it stopped working.

This commit reintroduces that behaviour.

Note that the regular layout lookups for text templates, i.e. "single.json" will be
prefixed with "_text/" on lookup and will only match in the text collection.

Fixes #3273
2017-04-16 09:17:47 +02:00
..
ace.go tpl: Rework to handle both text and HTML templates 2017-04-02 23:13:10 +02:00
amber_compiler.go tpl: Rework to handle both text and HTML templates 2017-04-02 23:13:10 +02:00
reflect_helpers.go tpl: Refactor package 2017-02-17 17:15:26 +01:00
template.go tplimpl: Allow text partials in HTML templates 2017-04-16 09:17:47 +02:00
template_ast_transformers.go tpl: Rework to handle both text and HTML templates 2017-04-02 23:13:10 +02:00
template_ast_transformers_test.go tpl: Rework to handle both text and HTML templates 2017-04-02 23:13:10 +02:00
template_embedded.go hugolib: Add optional outputFormat to Ref/RelRef 2017-04-04 23:09:01 +02:00
template_func_truncate.go tpl: Refactor package 2017-02-17 17:15:26 +01:00
template_func_truncate_test.go tpl: Refactor package 2017-02-17 17:15:26 +01:00
template_funcs.go tplimpl: Allow text partials in HTML templates 2017-04-16 09:17:47 +02:00
template_funcs_test.go tplimpl: Allow text partials in HTML templates 2017-04-16 09:17:47 +02:00
template_resources.go tplimpl: Fix map data race in URLLock 2017-03-31 10:40:33 +02:00
template_resources_test.go tplimpl: Fix deadlock in getJSON 2017-03-31 09:17:03 +02:00
template_test.go tpl: Rework to handle both text and HTML templates 2017-04-02 23:13:10 +02:00
templateFuncster.go tplimpl: Allow text partials in HTML templates 2017-04-16 09:17:47 +02:00
templateProvider.go tpl: Rework to handle both text and HTML templates 2017-04-02 23:13:10 +02:00