ViewManager
Hierarchy
- Map
- ViewManager
Index
Constructors
Methods
Constructors
externalconstructor
Methods
publicaddLocals
publicfindEngine
publicgetLocals
get global locals data
publicresolve
Resolve the path based on the given name, if the name is
user.html
and root isview
(by default), it will returnview/user.html
publicuse
This method can register view engine.
You can define a view engine class contains two method,
render
andrenderString
class View {
render() {}
renderString() {}
}
add a global data for all views