From 9df2fa403d10eb19548d07a1397a79d2c49d3758 Mon Sep 17 00:00:00 2001 From: Matthew Clark Date: Tue, 19 Jun 2018 13:55:44 -0500 Subject: [PATCH] Add txt for templates (#1117) Had `text` now can do the same thing for `txt` --- render/render.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/render/render.go b/render/render.go index 5df28a4e0..898a7dd5d 100644 --- a/render/render.go +++ b/render/render.go @@ -28,6 +28,9 @@ func New(opts Options) *Engine { if _, ok := opts.TemplateEngines["text"]; !ok { opts.TemplateEngines["text"] = plush.BuffaloRenderer } + if _, ok := opts.TemplateEngines["txt"]; !ok { + opts.TemplateEngines["txt"] = plush.BuffaloRenderer + } if _, ok := opts.TemplateEngines["js"]; !ok { opts.TemplateEngines["js"] = JSTemplateEngine }