basic layouts and partials for ejs
This commit is contained in:
parent
603a3d8be2
commit
229e7a7d33
4 changed files with 16 additions and 1 deletions
|
@ -1 +1,4 @@
|
||||||
|
<%- include('partials/head') %>
|
||||||
|
<%- include('partials/header') %>
|
||||||
<h1>This is a <%= engine %> Template</h1>
|
<h1>This is a <%= engine %> Template</h1>
|
||||||
|
<%- include('partials/footer') %>
|
4
src/views/partials/footer.ejs
Normal file
4
src/views/partials/footer.ejs
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<footer>
|
||||||
|
<span>This is the Footer</span>
|
||||||
|
</footer>
|
||||||
|
</html>
|
5
src/views/partials/head.ejs
Normal file
5
src/views/partials/head.ejs
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
|
||||||
|
</head>
|
3
src/views/partials/header.ejs
Normal file
3
src/views/partials/header.ejs
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<header>
|
||||||
|
<span>This is the header</span>
|
||||||
|
</header>
|
Loading…
Reference in a new issue