Skip to content
Permalink
Browse files

Use lower case references to markdown files

  • Loading branch information...
swlkr committed Mar 17, 2019
1 parent cfb3ed5 commit e392fa779461894be5d4aff15ea0b40c55874176
@@ -104,7 +104,7 @@ Postgres can be set similarly:
```

## Basic Example
Coast [queries](Queries.md) has a data-driven API, meaning all queries are clojure vectors, similar to [views](Views.md) and the [routes](Routes.md).
Coast [queries](/docs/queries.md) has a data-driven API, meaning all queries are clojure vectors, similar to [views](/docs/views.md) and the [routes](/doc/routes.md).

NOTE: Coast uses the singular version of all words for table names which is in opposition to most other full stack frameworks.

@@ -150,7 +150,7 @@ Multiple where clauses OR'd together? prefix with the `or` symbol:
["age > ?" 18]])
```
See the [queries](Queries.md) documentation for the complete API reference.
See the [queries](/docs/queries.md) documentation for the complete API reference.
## Connection Pooling
@@ -62,7 +62,7 @@ For example:
[:get "/a-deep-path" :a.deep.path.file/create]
```

As your defined handler functions are route handlers, they will receive the [request map](Request-Lifecycle.md) as an argument.
As your defined handler functions are route handlers, they will receive the [request map](/docs/request-lifecycle.md) as an argument.

```clojure
; src/author.clj
@@ -91,7 +91,7 @@ So `screen_name` in the database becomes `:screen-name` in your code.
The third thing is that each table on creation uses "id" as it's primary key. This makes generating joins easier.
See [Migrations](Migrations.md) for more details.
See [Migrations](/docs/migrations.md) for more details.
## Basic Example
Below is a basic example of a query
@@ -6,7 +6,7 @@

In Coast relationships allow you to do more sophisticated queries than you would be able to otherwise.

If you never find yourself needing [pull queries](Pull.md) you can skip this section altogether.
If you never find yourself needing [pull queries](/docs/pull.md) you can skip this section altogether.

## Basic Example

@@ -148,4 +148,4 @@ Has many through allows you to shortcut through database tables and pull data ou
{:author/id 1})
```
For more information on pull syntax and how it works and relates to `db/associations.clj` check out the [pull syntax doc](Pull.md)
For more information on pull syntax and how it works and relates to `db/associations.clj` check out the [pull syntax doc](/docs/pull.md)
@@ -26,7 +26,7 @@ You must respond to the request in your route handler. Once terminated, Coast ex

Coast provides an **HTTP Context** map in the form of ring's request map to each route handler.

This map contains everything you need to handle the request, like the `:uri` of the route, any url or form `:params` or the `:session` values and can be easily extended via [Middleware](Middleware.md)
This map contains everything you need to handle the request, like the `:uri` of the route, any url or form `:params` or the `:session` values and can be easily extended via [Middleware](/docs/middleware.md)

```clojure
(defn index [{:keys [params session uri method] :as request}]
@@ -9,7 +9,7 @@

This guide outlines how to use the request map to read request data.

Coast passes the current HTTP request object as part of the [request lifecycle](Request-Lifecycle.md) which is sent to all route handlers and middleware:
Coast passes the current HTTP request object as part of the [request lifecycle](/docs/request-lifecycle.md) which is sent to all route handlers and middleware:

```clojure
(defn index [{:keys [params session errors uri request-method] :as request}])
@@ -10,7 +10,7 @@

This guide outlines how to use the response map to respond to incoming requests.

Coast passes the current HTTP response map as part of the [request-lifecycle](Request-Lifecycle.md) which is sent to all route handlers and middleware.
Coast passes the current HTTP response map as part of the [request-lifecycle](/docs/request-lifecycle.md) which is sent to all route handlers and middleware.

```clojure
; routes.clj
@@ -34,7 +34,7 @@ These are Coast's default settings in development and production
## Form Method Spoofing
As HTML forms are only capable of making `GET` and `POST` requests, you cannot use HTTP verbs like `PUT` or `DELETE` to perform resourceful operations via a form's `method` attribute.
To work around this, Coast implements [method spoofing](Request.md#method-spoofing), enabling you to send your intended HTTP method via the request's hidden `_method` input (in a form):
To work around this, Coast implements [method spoofing](/docs/request.md#user-content-method-spoofing), enabling you to send your intended HTTP method via the request's hidden `_method` input (in a form):
```clojure
[:put "/customers/:customer-id" :customer/update]
@@ -28,7 +28,7 @@ Note: The [redis](https://github.com/paraseba/rrss) and [jdbc](https://github.co


## Basic example
The `session` object is passed as part of the [request map](Request.md)
The `session` object is passed as part of the [request map](/docs/request.md)

Here's a quick example of how to use sessions during the HTTP lifecycle:

@@ -65,7 +65,7 @@ This generates a file in the db folder that looks like this:
(timestamps)))
```
There are also a lot more helpers for database-agnostic columns and references, which are detailed in [Migrations](Migrations.md)
There are more helpers for columns and references detailed in [Migrations](/docs/migrations.md)
Previously, this was a confusing mess of edn without any clear rhyme or reason. Hopefully this is an improvement over that. Running migrations is the same as before:

0 comments on commit e392fa7

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