mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2026-10-20 18:28:32 +00:00
14 lines
285 B
Go
14 lines
285 B
Go
package actions
|
|
|
|
import (
|
|
. "github.com/mickael-kerjean/filestash/server/pkg/kernel"
|
|
)
|
|
|
|
func Render(templateText string, variables map[string]string) string {
|
|
rendered, err := TmplExec(templateText, TmplParams(variables))
|
|
if err != nil {
|
|
return templateText
|
|
}
|
|
return rendered
|
|
}
|