Add view engine unit - handlebars - and response helpers

This commit is contained in:
garrettmills
2020-08-07 09:51:25 -05:00
parent 3e4f8f00f2
commit b5bde7d077
14 changed files with 165 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
import Controller from '../../../lib/src/http/Controller.ts'
import {Request} from '../../../lib/src/http/Request.ts'
import {view} from '../../../lib/src/http/response/helpers.ts'
export default class HomeController extends Controller {
get_home(request: Request) {
return view('home', { request })
}
}