Add view engine unit - handlebars - and response helpers
This commit is contained in:
0
app/http/views/layouts/.gitkeep
Normal file
0
app/http/views/layouts/.gitkeep
Normal file
14
app/http/views/layouts/main.hbs
Normal file
14
app/http/views/layouts/main.hbs
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
{{#if title}}
|
||||
<title>{{ title }} | Daton</title>
|
||||
{{else}}
|
||||
<title>Daton</title>
|
||||
{{/if}}
|
||||
</head>
|
||||
<body>
|
||||
{{{ body }}}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user