ianhomer / yaml

bemokoLive yaml plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Background
-------------------------------------------------------------------------------

bemokoLive plugin that reads content from a Yaml file and makes it available
for rendering in the UI templates.

What Is YAML?: YAML is a human friendly data serialization standard for all 
programming languages.  In otherwise a slightly technical, but clean data
format (with less angular brackets than XML)- http://www.yaml.org/


Installation
-------------------------------------------------------------------------------

* Drop yaml/YamlReader.groovy in the plugins folder of your site


Usage
-------------------------------------------------------------------------------

Define content source in your bemoko site

  <content-sources>
    <source name="yaml" plugin="yaml.YamlReader" scope="site">
      <param name="filepath">data/content.yaml</param>
    </source>
  </content-sources>

create the YAML file data/content.yaml and add some content in the YAML format
and access content from the YAML file within a UI template like

  <h1>${content.yaml.home.title}</h1>

About

bemokoLive yaml plugin


Languages

Language:Groovy 100.0%