Support deno 1.3.x/0.67.0; replace handlebars with view_engine library

This commit is contained in:
2020-09-04 09:40:16 -05:00
parent 0f182b592b
commit ff34578d07
23 changed files with 287 additions and 141 deletions

View File

@@ -1,11 +1,13 @@
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'
import {Injectable} from '../../../di/module.ts'
@Injectable()
export default class HomeController extends Controller {
get_home(request: Request) {
return view('home', { request })
async get_home(request: Request) {
return view('home', { greeting: 'Hello' })
}
}