Skip to content

Commit

Permalink
Merge pull request #236 from fasterthanlime/master
Browse files Browse the repository at this point in the history
Typos in docs
  • Loading branch information
leafo committed Feb 16, 2015
2 parents c71d29c + cbbbde0 commit 58126eb
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ end)
By default all cookies are given the additional attributes `Path=/; HttpOnly`
(which creates a [*session
cookie*](http://en.wikipedia.org/wiki/HTTP_cookie#Terminology)). You can
configure a cookie's settings by overidding the the `cookie_attributes`
configure a cookie's settings by overriding the the `cookie_attributes`
function on your application. Here's an example that adds an expiration date to
cookies to make them persist:

Expand Down
4 changes: 2 additions & 2 deletions docs/etlua_templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ code inline in a template file to produce a dynamic output. In Lapis we use
`etlua` to render dynamic content inside of HTML templates.

`etlua` files use the `.etlua` extension. Lapis knows how to load those types
of files automatically using Lua's `require` function after you've enable
of files automatically using Lua's `require` function after you've enabled
`etlua`

For example, here's a simple template that renders a random number:
Expand Down Expand Up @@ -192,7 +192,7 @@ you can also include them using the `render` function.
Any values and helpers available in the parent template are also available in
the sub-template.

Somtimes you need to pass data to a sub-template that's generated during the
Sometimes you need to pass data to a sub-template that's generated during the
execution of the parent template. `render` takes a second argument of values
to pass into the sub-template.

Expand Down
4 changes: 2 additions & 2 deletions docs/exception_handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Exception Handling
## The Kinds of Errors

Lapis makes a distinction between two kinds of errors: Recoverable and
non-recoverable errors. Errors thrown by Lua's runtime during executuion or
non-recoverable errors. Errors thrown by Lua's runtime during execution or
calls to `error` are considered non-recoverable. (This also includes the Lua
built-in function `assert`)

Expand Down Expand Up @@ -63,7 +63,7 @@ class App extends lapis.Application

What happens when there is an error? The action will stop executing at the
first error, and then the error handler is run. The default error handler will
set an array like table of errors in <span
set an array-like table of errors in <span
class="for_moon">`@errors`</span><span class="for_lua">`self.errors`</span> and
return <span class="for_moon">`render: true`</span><span class="for_lua">`{
render = true }`</span>. In your view you can then display the errors. This
Expand Down
2 changes: 1 addition & 1 deletion docs/html_generation.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ class MyView extends Widget

You can use either strings or builder functions as the content.

To access the content from the layout call `@content_for` without the content
To access the content from the layout, call `@content_for` without the content
argument:

```moon
Expand Down
2 changes: 1 addition & 1 deletion docs/models.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Followings extends Model
@primary_key: { "user_id", "followed_user_id" }
```

## Class Mehods
## Class Methods

Model class methods are used for fetching existing rows or creating new ones.

Expand Down
2 changes: 1 addition & 1 deletion docs/moon_getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class App extends lapis.Application
You are free to add as many as you like by calling `@before_filter` multiple
times. They will be run in the order they are registered.

If a before filter calls the `@write` method then the action will be canceled.
If a before filter calls the `@write` method then the action will be cancelled.
For example we can cancel the action and redirect to another page if some
condition is not met:

Expand Down
4 changes: 2 additions & 2 deletions docs/utilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Converts a key,value table into a query string

### `underscore(str)`

Converst CamelCase to camel_case.
Convert CamelCase to camel_case.

### `slugify(str)`

Expand Down Expand Up @@ -531,7 +531,7 @@ cache.delete { "/hello", { thing: "world" } }

### `delete_all([dict_name="page_cache"])`

Deletes all entires from the cache.
Deletes all entries from the cache.

### `delete_path(path, [dict_name="page_cache"])`

Expand Down

0 comments on commit 58126eb

Please sign in to comment.