Closed aesteve closed 9 years ago
@View("nameoftheview") is nice but limited.
@View("nameoftheview")
Sometimes the view name will be dynamic.
So provide a ViewResolver parameter user can add to their method to set the name of the view. dynamically (i.e. if(somethingWenWrong) { resolver.resolve("failure.hbs") } )
ViewResolver
if(somethingWenWrong) { resolver.resolve("failure.hbs") }
implemented, tested
@View("nameoftheview")
is nice but limited.Sometimes the view name will be dynamic.
So provide a
ViewResolver
parameter user can add to their method to set the name of the view. dynamically (i.e.if(somethingWenWrong) { resolver.resolve("failure.hbs") }
)