2017-10-06 00:19:10 +02:00
|
|
|
// +build go1.9
|
|
|
|
|
|
|
|
package mvc
|
|
|
|
|
|
|
|
import (
|
2017-10-09 14:26:46 +02:00
|
|
|
"html/template"
|
|
|
|
|
2017-10-06 00:19:10 +02:00
|
|
|
"github.com/kataras/iris/mvc/activator"
|
|
|
|
)
|
|
|
|
|
2017-10-09 14:26:46 +02:00
|
|
|
type (
|
|
|
|
// HTML wraps the "s" with the template.HTML
|
|
|
|
// in order to be marked as safe content, to be rendered as html and not escaped.
|
|
|
|
HTML = template.HTML
|
|
|
|
|
2017-11-27 20:39:57 +01:00
|
|
|
// TController contains the necessary controller's pre-serve information.
|
2017-10-09 14:26:46 +02:00
|
|
|
//
|
2017-11-27 20:39:57 +01:00
|
|
|
// With `TController` the `Controller` can register custom routes
|
2017-10-09 14:26:46 +02:00
|
|
|
// or modify the provided values that will be binded to the
|
|
|
|
// controller later on.
|
|
|
|
//
|
2017-11-27 20:39:57 +01:00
|
|
|
// Look the `mvc/activator#TController` for its implementation.
|
2017-10-09 14:26:46 +02:00
|
|
|
//
|
2017-11-27 20:39:57 +01:00
|
|
|
// A shortcut for the `mvc/activator#TController`, useful when `OnActivate` is being used.
|
|
|
|
TController = activator.TController
|
2017-10-09 14:26:46 +02:00
|
|
|
)
|