summary refs log tree commit diff stats
path: root/src/views
diff options
context:
space:
mode:
authorAlan Pearce2017-06-23 23:06:43 +0200
committerAlan Pearce2017-06-23 23:06:43 +0200
commitf9fd0d795fb7bff10cb759f2300200d50b0fbab3 (patch)
tree8e3e68bce0742ea4e5d6538a8e437ec2512f9518 /src/views
parent4d6378483d46806d0006d6e5755e0eedd6372154 (diff)
downloadhomestead-f9fd0d795fb7bff10cb759f2300200d50b0fbab3.tar.lz
homestead-f9fd0d795fb7bff10cb759f2300200d50b0fbab3.tar.zst
homestead-f9fd0d795fb7bff10cb759f2300200d50b0fbab3.zip
feat: Streaming DOM templates via rheo
Diffstat (limited to 'src/views')
-rw-r--r--src/views/index.njk17
-rw-r--r--src/views/layouts/main.njk13
-rw-r--r--src/views/post.njk8
-rw-r--r--src/views/term.njk7
4 files changed, 0 insertions, 45 deletions
diff --git a/src/views/index.njk b/src/views/index.njk
deleted file mode 100644
index 9a7cc80..0000000
--- a/src/views/index.njk
+++ /dev/null
@@ -1,17 +0,0 @@
-{% extends "layouts/main.njk" %}
-
-{% block body %}
-
-  <h1>hello world</h1>
-
-  <ul>
-    {% for filename, post in posts %}
-      <li>
-        <a href="{{ router.url('post', post.basename)}}">
-          {{ post.data.get('title') }}
-        </a>
-      </li>
-    {% endfor %}
-  </ul>
-
-{% endblock %}
diff --git a/src/views/layouts/main.njk b/src/views/layouts/main.njk
deleted file mode 100644
index 1fe1a93..0000000
--- a/src/views/layouts/main.njk
+++ /dev/null
@@ -1,13 +0,0 @@
-<!doctype html>
-<html lang="en">
-  <head>
-    <meta charset="utf-8"/>
-    <title>{% block title %}{{ site.title }}{% endblock %}</title>
-  </head>
-  <body>
-    <main>
-      {% block body %}
-      {% endblock %}
-    </main>
-  </body>
-</html>
diff --git a/src/views/post.njk b/src/views/post.njk
deleted file mode 100644
index d6a4f92..0000000
--- a/src/views/post.njk
+++ /dev/null
@@ -1,8 +0,0 @@
-{% extends "layouts/main.njk" %}
-
-{% block body %}
-
-{{ post.data.title }}
-
-{{ post.body | safe }}
-{% endblock %}
diff --git a/src/views/term.njk b/src/views/term.njk
deleted file mode 100644
index 6ac932e..0000000
--- a/src/views/term.njk
+++ /dev/null
@@ -1,7 +0,0 @@
-{% extends "layouts/main.njk" %}
-
-{% block body %}
-{% for post in posts %}
-  {{ post.data.get('title') }}
-{% endfor %}
-{% endblock %}