mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 11:59:40 -08:00
fix(template): provide template as name
This commit is contained in:
parent
1a03a6d9e8
commit
b4d82c6037
|
@ -44,7 +44,7 @@ func (c *Context) init(t *Text) {
|
|||
|
||||
func (t *Text) Render() (string, error) {
|
||||
t.cleanTemplate()
|
||||
tmpl, err := template.New("title").Funcs(funcMap()).Parse(t.Template)
|
||||
tmpl, err := template.New(t.Template).Funcs(funcMap()).Parse(t.Template)
|
||||
if err != nil {
|
||||
t.Env.Log(environment.Error, "Render", err.Error())
|
||||
return "", errors.New(InvalidTemplate)
|
||||
|
|
Loading…
Reference in a new issue