https://github.com/devinus/static-site-brunch
Static site support for Brunch
https://github.com/devinus/static-site-brunch
Last synced: 7 months ago
JSON representation
Static site support for Brunch
- Host: GitHub
- URL: https://github.com/devinus/static-site-brunch
- Owner: devinus
- License: cc0-1.0
- Created: 2015-09-01T23:15:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-03T23:33:09.000Z (over 10 years ago)
- Last Synced: 2025-02-03T23:45:09.800Z (over 1 year ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-brunch - Static-site-brunch
README
# static-site-brunch
[](https://travis-ci.org/devinus/static-site-brunch)
Static site support for [Brunch](http://brunch.io/).
## Install
```
npm install --save static-site-brunch
```
## Usage
Add Handlebars templates to `app/templates` and they will be automatically
compiled and placed in your `public` directory.
Partials are automatically registered if they begin with an underscore, e.g.
`_hello.hbs`.
YAML front matter allows you to control the context passed to the template
during render.
## Example
```
---
people:
- name: Devin
- name: Kevin
---
{{#each people}}
Hello {{name}}
{{/each}}
```