README.md in rtprov-0.1.1 vs README.md in rtprov-0.1.2
- old
+ new
@@ -78,9 +78,23 @@
# Rendering templates/my_config.erb and put to my_route as config0 and load it.
$ rtprov put my_router my_config
# Rendering templates/my_config.erb and put to my_route as config1 and load it.
$ rtprov put my_router --number 1 my_config
+Templates are ERB file. In template, define variables described in router file.
+For example, in router file,
+
+ variables:
+ foo:
+ bar:
+ - baz: foobar
+
+in template,
+
+ <%= foo.bar[0].baz >
+
+you can get "foobar".
+
## Development
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.