forked from ianhomer/yaml
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
32 lines (21 loc) · 1.05 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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>