From 229e7a7d3398cd682aa12d3922bd25237d43c2a1 Mon Sep 17 00:00:00 2001 From: Nikurasu Date: Fri, 14 Oct 2022 10:26:47 +0200 Subject: [PATCH] basic layouts and partials for ejs --- src/views/index.ejs | 5 ++++- src/views/partials/footer.ejs | 4 ++++ src/views/partials/head.ejs | 5 +++++ src/views/partials/header.ejs | 3 +++ 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/views/partials/footer.ejs create mode 100644 src/views/partials/head.ejs create mode 100644 src/views/partials/header.ejs diff --git a/src/views/index.ejs b/src/views/index.ejs index 44dc9a2..03c2c4f 100644 --- a/src/views/index.ejs +++ b/src/views/index.ejs @@ -1 +1,4 @@ -

This is a <%= engine %> Template

\ No newline at end of file +<%- include('partials/head') %> +<%- include('partials/header') %> +

This is a <%= engine %> Template

+<%- include('partials/footer') %> \ No newline at end of file diff --git a/src/views/partials/footer.ejs b/src/views/partials/footer.ejs new file mode 100644 index 0000000..f3328a6 --- /dev/null +++ b/src/views/partials/footer.ejs @@ -0,0 +1,4 @@ + + \ No newline at end of file diff --git a/src/views/partials/head.ejs b/src/views/partials/head.ejs new file mode 100644 index 0000000..1bb9854 --- /dev/null +++ b/src/views/partials/head.ejs @@ -0,0 +1,5 @@ + + + + + diff --git a/src/views/partials/header.ejs b/src/views/partials/header.ejs new file mode 100644 index 0000000..4706f26 --- /dev/null +++ b/src/views/partials/header.ejs @@ -0,0 +1,3 @@ +
+ This is the header +
\ No newline at end of file