Filesystem as YAML

You can specify custom data that can be accessed in your views using data files. Those are YAML files which can be either stored in website/data/ directory or using a single data.yml placed directly in website. By default website/data.yml is used; if set, data/ directory has higher priority.

Here's an example of a data.yml file:

title: This is the title of this website

  description: Here goes <meta/> tag description.

  - title: My First blog post
    content: >
      I'd like to start blogging and this is my first
      attempt to do so.

The content of this file is automatically injected in all views as website object. You can access any part of it using a typical JavaScript notation e.g. website.title for the title, or website.posts[0].content for the content field of the first post.