From 21ca97bb75e96df675962e4cb464a8b5b2800480 Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Sat, 5 Dec 2015 01:18:39 +0100 Subject: [PATCH] Some dummy texts ... --- .gitignore | 1 + resources/docs/docs.md | 23 ----------------------- resources/templates/about.html | 3 ++- resources/templates/home.html | 14 ++++---------- src/mailhead/routes/home.clj | 3 +-- 5 files changed, 8 insertions(+), 36 deletions(-) delete mode 100644 resources/docs/docs.md diff --git a/.gitignore b/.gitignore index 47fed6c..c0a8723 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ pom.xml.asc .lein-plugins/ .lein-failures .nrepl-port +/mailhead.log diff --git a/resources/docs/docs.md b/resources/docs/docs.md deleted file mode 100644 index b646c79..0000000 --- a/resources/docs/docs.md +++ /dev/null @@ -1,23 +0,0 @@ - - -### Managing Your Middleware - -Request middleware functions are located under the `mailhead.middleware` namespace. - -This namespace is reserved for any custom middleware for the application. Some default middleware is -already defined here. The middleware is assembled in the `wrap-base` function. - -Middleware used for development is placed in the `mailhead.dev-middleware` namespace found in -the `env/dev/clj/` source path. - -### Here are some links to get started - -1. [HTML templating](http://www.luminusweb.net/docs/html_templating.md) -2. [Accessing the database](http://www.luminusweb.net/docs/database.md) -3. [Serving static resources](http://www.luminusweb.net/docs/static_resources.md) -4. [Setting response types](http://www.luminusweb.net/docs/responses.md) -5. [Defining routes](http://www.luminusweb.net/docs/routes.md) -6. [Adding middleware](http://www.luminusweb.net/docs/middleware.md) -7. [Sessions and cookies](http://www.luminusweb.net/docs/sessions_cookies.md) -8. [Security](http://www.luminusweb.net/docs/security.md) -9. [Deploying the application](http://www.luminusweb.net/docs/deployment.md) diff --git a/resources/templates/about.html b/resources/templates/about.html index 5317223..c78972c 100644 --- a/resources/templates/about.html +++ b/resources/templates/about.html @@ -1,4 +1,5 @@ {% extends "base.html" %} {% block content %} -

this is the story of mailhead... work in progress

+

This is my ClojureCup 2015 entry.

+

You can find me on Twitter: @fu86

{% endblock %} diff --git a/resources/templates/home.html b/resources/templates/home.html index b6ba349..30c1125 100644 --- a/resources/templates/home.html +++ b/resources/templates/home.html @@ -1,14 +1,8 @@ {% extends "base.html" %} {% block content %} -
-

Welcome to mailhead

-

Time to start building your site!

-

Learn more »

-
- -
-
- {{docs|markdown}} -
+
+
+
+
{% endblock %} diff --git a/src/mailhead/routes/home.clj b/src/mailhead/routes/home.clj index 896d9d0..fd88adc 100644 --- a/src/mailhead/routes/home.clj +++ b/src/mailhead/routes/home.clj @@ -5,8 +5,7 @@ [clojure.java.io :as io])) (defn home-page [] - (layout/render - "home.html" {:docs (-> "docs/docs.md" io/resource slurp)})) + (layout/render "home.html")) (defn about-page [] (layout/render "about.html"))