aboutsummaryrefslogtreecommitdiff
path: root/src/guff/views
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-03-05 19:50:08 -0500
committerPaul Duncan <pabs@pablotron.org>2016-03-05 19:50:08 -0500
commit2feff82cf98724bb1f8249d681f116459241c929 (patch)
tree5c0627cc599cdb888fb741d08a27f6b698d1d51b /src/guff/views
parent95e31f6daffb634690ad910a621ba907987ab9c9 (diff)
downloadold-guff-2feff82cf98724bb1f8249d681f116459241c929.tar.bz2
old-guff-2feff82cf98724bb1f8249d681f116459241c929.zip
add htmlpageview and views/page.cr
Diffstat (limited to 'src/guff/views')
-rw-r--r--src/guff/views/page.ecr13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/guff/views/page.ecr b/src/guff/views/page.ecr
new file mode 100644
index 0000000..505731a
--- /dev/null
+++ b/src/guff/views/page.ecr
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html lang='en-US'>
+ <head>
+ <title><%= h(@title) %></title>
+ <%= page_headers %>
+ </head>
+
+ <body id='<%= @body_id %>' class='<%= body_class %>'><%=
+ @body
+ %></body>
+
+ <%= page_footers %>
+</html>