Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
erin-noe-payne committed Jan 16, 2013
1 parent 5fb46a3 commit ffd4d31
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ Options for `#express3`
defaultLayout: "{String} [Optional] Absolute path to default layout template",
extname: "{String} Extension for templates, defaults to `.hbs`",
handlebars: "{Module} Use external handlebars instead of express-hbs dependency",
partialsDir: "{String} Path to partials templates"
partialsDir: "{String} Path to partials templates",
layoutsDir: "{String} Path to layout templates"
});

Partials may use any extension, which is better for syntax highlighting.
Expand All @@ -49,7 +50,7 @@ To define block content in a page.

There are three ways to use a layout, listed in the order in which they are checked for and used:

1. Declarative within a page. Use handlebars comment. `LAYOUT` is a relative path from template.
1. Declarative within a page. Use handlebars comment. If you have declared a layoutsDir in the configuration, `LAYOUT` is a relative path from layoutsDir. Otherwise, `LAYOUT` is a relative path from the template.

{{!< LAYOUT}}

Expand Down Expand Up @@ -99,7 +100,7 @@ File `views/layout/default.hbs`
File `views/index.hbs`

```
{{!< layout/default}}
{{!< default}}
{{#contentFor "pageStyles"}}
<style>
Expand Down

0 comments on commit ffd4d31

Please sign in to comment.