Skip to content

Commit

Permalink
include docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Sep 26, 2011
1 parent 509083d commit 31937ef
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -633,10 +633,8 @@ JavaScript:

## Includes

Includes allow you to statically include chunks of Jade
which lives in a separate file. The classical example is
including a header and footer. Suppose we have the following
directory structure:
Includes allow you to statically include chunks of Jade,
or other content like css, or html which lives in separate files. The classical example is including a header and footer. Suppose we have the following directory structure:

./layout.jade
./includes/
Expand Down Expand Up @@ -673,6 +671,17 @@ which should be an absolute path to this file, however Express does this for you
</html>
```

As mentioned `include` can be used to include other content
such as html or css. By providing an extension Jade will not
assume that the file is Jade source and will include it as
a literal:

```
html
body
include content.html
```

## Mixins

Mixins are converted to regular JavaScript functions in
Expand Down

0 comments on commit 31937ef

Please sign in to comment.