Skip to content
Permalink
Browse files

release "2.9.11.08"

  • Loading branch information...
yogthos committed Oct 18, 2016
1 parent 2cb878d commit 31d83f44736e0e6aabae6204b055fbaeb5077830
@@ -1,5 +1,9 @@
## 2.9.11.07

- improved documentation in the generated template

## 2.9.11.07

- updated the template page for new projects

## 2.9.11.06
@@ -1,4 +1,4 @@
(defproject luminus/lein-template "2.9.11.07"
(defproject luminus/lein-template "2.9.11.08"
:description "a template for creating Luminus applications"
:url "https://github.com/yogthos/luminus-template"
:license {:name "MIT License"
@@ -1,6 +1,6 @@
# <<name>>

generated using Luminus version "2.9.11.07"
generated using Luminus version "2.9.11.08"

FIXME

@@ -63,9 +63,34 @@ The HTML templates are written using [Selmer](https://github.com/yogthos/Selmer)
</div>
```

The `home-page` function
<a class="btn btn-primary" href="http://www.luminusweb.net/docs/html_templating.md">learn more about HTML templating »</a>

<% endif %>

#### Organizing the routes

The routes are aggregated and wrapped with middleware in the `<<project-ns>>.handler` namespace:

```
(def app-routes
(routes
(-> #'home-routes
(wrap-routes middleware/wrap-csrf)
(wrap-routes middleware/wrap-formats))
(route/not-found
(:body
(error-page {:status 404
:title "page not found"})))))
```

The `app-routes` definition groups all the routes in the application into a single handler.
A default route group is added to handle the `404` case.

<a class="btn btn-primary" href="http://www.luminusweb.net/docs/routes.md">learn more about routing »</a>

The `home-routes` are wrapped with two middleware functions. The first enables CSRF protection.
The second takes care of serializing and deserializing various encoding formats, such as JSON.

#### Managing your middleware

Request middleware functions are located under the `<<name>>.middleware` namespace.
@@ -76,6 +101,8 @@ already defined here. The middleware is assembled in the `wrap-base` function.
Middleware used for development is placed in the `<<project-ns>>.dev-middleware` namespace found in
the `env/dev/clj/` source path.

<a class="btn btn-primary" href="http://www.luminusweb.net/docs/middleware.md">learn more about middleware »</a>

<<db-docs>>
<<sassc-docs>>

@@ -10,4 +10,6 @@ If you haven't already, then please follow the steps below to configure your dat
* Let `mount` know to start the database connection by `require`-ing `<<project-ns>>.db.core` in some other namespace.
* Restart the application.

<a class="btn btn-primary" href="http://www.luminusweb.net/docs/database.md">learn more about database access »</a>

</div>
@@ -8,4 +8,6 @@ If you haven't already, then please follow the steps below to configure your dat
* Let `mount` know to start the database connection by `require`-ing `<<project-ns>>.db.core` in some other namespace.
* Restart the application.

<a class="btn btn-primary" href="http://www.luminusweb.net/docs/database.md">learn more about database access »</a>

</div>

0 comments on commit 31d83f4

Please sign in to comment.
You can’t perform that action at this time.