Skip to content

I want it for text/template! #2

@fiatjaf

Description

@fiatjaf
tmpl := template.Must(template.ParseFiles(file)).Funcs(gtf.GtfFuncMap) 

gives me the error:

cannot use gtf.GtfFuncMap (type "html/template".FuncMap) as type "text/template".FuncMap in argument to "text/template".Must("text/template".ParseFiles(file)).Funcs

What can I do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions