Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge branch 'views-slim'
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed Feb 20, 2011
2 parents 96e426b + c077704 commit 5391a01
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions book/Views.markdown
Expand Up @@ -212,6 +212,19 @@ template, you almost always want to pass locals to it:

liquid :index, :locals => { :key => 'value' }

### Slim Templates

The `slim` gem/library is required to render Slim templates:

# You'll need to require slim in your app
require 'slim'

get '/' do
slim :index
end

Renders `./views/index.slim`.

### Markdown Templates

The rdiscount gem/library is required to render Markdown templates:
Expand Down

0 comments on commit 5391a01

Please sign in to comment.