Skip to content

Add support for parsing templates text from the file system fs instead of the host operating system's file system #7

Closed
@aantelov87

Description

@aantelov87

Now that we have fs package, it would be useful to add ParseFS from the standard library package html/template into the safehtml/template API.

func (t *Template) ParseFS(fs fs.FS, patterns ...string) (*Template, error)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions