November 2018
Intermediate to advanced
404 pages
10h 16m
English
Since your project has been configured for the Stencil templating engine, you can now add several Stencil templates that you'll need later. All of the templates should be placed under the Views folder in a Kitura project.
First of all, add the header and footer templates that are shared by other Stencil templates.
Add the /Views/header.stencil template:
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8" /><title>{{ title }}</title></head><body>
Also, add the /Views/footer.stencil template:
<hr><center>{{ title }} Application by {{ author }}.</center></body></html>
Now, add the /Views/main.stencil template:
% include "header.stencil" %}<h1>{{ title }}</h1>[ <a href="/journal/create">Add ...Read now
Unlock full access