mirror of
https://github.com/kataras/iris.git
synced 2025-12-28 07:17:06 +00:00
Enhance the view engine's example for {{url ...}} and {{urlpath ...}} tmpl funcs for reverse routing.
Former-commit-id: ec3cda69e5cbe5a04842150011b3788b70055572
This commit is contained in:
2
iris.go
2
iris.go
@@ -268,7 +268,7 @@ func New(setters ...OptionSetter) *Framework {
|
||||
// +------------------------------------------------------------+
|
||||
s.Adapt(TemplateFuncsPolicy{
|
||||
"url": s.URL,
|
||||
"urlpath": s.policies.RouterReversionPolicy.URLPath,
|
||||
"urlpath": s.Path,
|
||||
}) // the entire template registration logic lives inside the ./adaptors/view now.
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user