Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Add txt for templates (#1117)
Browse files Browse the repository at this point in the history
Had `text` now can do the same thing for `txt`
  • Loading branch information
mclark4386 authored and markbates committed Jun 22, 2018
1 parent c132324 commit 9df2fa4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions render/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9df2fa4

Please sign in to comment.