mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 02:31:04 +01:00
add FS func in HTMLEngine (#2304)
Signed-off-by: aveyuan <aveyuan@osblog.cn>
This commit is contained in:
parent
3061191ebd
commit
7ffe4010b9
|
@ -104,6 +104,12 @@ func (s *HTMLEngine) RootDir(root string) *HTMLEngine {
|
||||||
return s
|
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.
|
// Name returns the engine's name.
|
||||||
func (s *HTMLEngine) Name() string {
|
func (s *HTMLEngine) Name() string {
|
||||||
return s.name
|
return s.name
|
||||||
|
|
Loading…
Reference in New Issue
Block a user