Skip to content

Commit

Permalink
add FS func in HTMLEngine (#2304)
Browse files Browse the repository at this point in the history
Signed-off-by: aveyuan <[email protected]>
  • Loading branch information
aveyuan authored Dec 12, 2023
1 parent 3061191 commit 7ffe401
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions view/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ func (s *HTMLEngine) RootDir(root string) *HTMLEngine {
return s
}

// FS change templates DIR
func (s *HTMLEngine) FS(dirOrFS interface{}) *HTMLEngine {
s.fs = getFS(dirOrFS)
return s
}

// Name returns the engine's name.
func (s *HTMLEngine) Name() string {
return s.name
Expand Down

0 comments on commit 7ffe401

Please sign in to comment.