Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

ianhomer/yaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages