Some dummy texts ...
This commit is contained in:
parent
c3e12f32a3
commit
21ca97bb75
5 changed files with 8 additions and 36 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -10,3 +10,4 @@ pom.xml.asc
|
||||||
.lein-plugins/
|
.lein-plugins/
|
||||||
.lein-failures
|
.lein-failures
|
||||||
.nrepl-port
|
.nrepl-port
|
||||||
|
/mailhead.log
|
||||||
|
|
|
@ -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)
|
|
|
@ -1,4 +1,5 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<p>this is the story of mailhead... work in progress</p>
|
<p>This is my ClojureCup 2015 entry.</p>
|
||||||
|
<p>You can find me on Twitter: <a href="https://twitter.com/fu86">@fu86</a></p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,14 +1,8 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="jumbotron">
|
<div class="row">
|
||||||
<h1>Welcome to mailhead</h1>
|
|
||||||
<p>Time to start building your site!</p>
|
|
||||||
<p><a class="btn btn-primary btn-lg" href="http://luminusweb.net">Learn more »</a></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="span12">
|
<div class="span12">
|
||||||
{{docs|markdown}}
|
<img src="http://tclhost.com/eCel6N8.gif">
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
[clojure.java.io :as io]))
|
[clojure.java.io :as io]))
|
||||||
|
|
||||||
(defn home-page []
|
(defn home-page []
|
||||||
(layout/render
|
(layout/render "home.html"))
|
||||||
"home.html" {:docs (-> "docs/docs.md" io/resource slurp)}))
|
|
||||||
|
|
||||||
(defn about-page []
|
(defn about-page []
|
||||||
(layout/render "about.html"))
|
(layout/render "about.html"))
|
||||||
|
|
Loading…
Reference in a new issue