Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

docs for introducing new blocks

  • Loading branch information...
commit a233ca1bb0446506ef917022aa53406b2b1c3067 1 parent 8897d31
@tj tj authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 Readme.md
View
14 Readme.md
@@ -667,6 +667,20 @@ block content
include pet
```
+ It's also possible to override a block to provide additional blocks, as shown in the following example where `content` now exposes a `sidebar` and `primary` block for overriding, or the child template could override `content` all together.
+
+```
+extends regular-layout
+
+block content
+ .sidebar
+ block sidebar
+ p nothing
+ .primary
+ block primary
+ p nothing
+```
+
## Includes
Includes allow you to statically include chunks of Jade,
Please sign in to comment.
Something went wrong with that request. Please try again.