Closes #26
This is a pretty big change. Essentially, it:
- introduces collections. Collections are defined in config and must match a directory name under the root pages directory
- passes collection context to mustache. The context includes all posts (content and metadata) from these collections. It is passed to mustache as part of the view, which means it can be accessed in templates
- lets users preprocess the context. This is useful because since mustache is logicless, the view needs to be build before passing it to the template
These should be enough to move a lot of logic out of custom build scripts, starting with the basic use case of iterating through a list of articles to render them on a page.
Closes #26
This is a pretty big change. Essentially, it:
- **introduces collections**. Collections are defined in config and must match a directory name under the root pages directory
- **passes collection context to mustache**. The context includes all posts (content and metadata) from these collections. It is passed to mustache as part of the view, which means it can be accessed in templates
- **lets users preprocess the context**. This is useful because since mustache is logicless, the view needs to be build _before_ passing it to the template
These should be enough to move a lot of logic out of custom build scripts, starting with the basic use case of iterating through a list of articles to render them on a page.