super simple but working version of data samples for a new content type
did
committed Jan 14, 2013
commit bc2d7a55fb945dc5a68b996d2ee6f7fb022fd356
Showing 2
changed files with
7 additions
and 2 deletions
TODO
+1
-1
| @@ | @@ -30,7 +30,7 @@ x content types / liquid |
| - copy Bundler / Gemfile | |
| - content types | |
| x definitions | |
| - | - data |
| + | - data (Faker) |
| - push: | |
| - option to select to push only some parts (pages, ...etc) | |
| - --force option | |
generators/content_type/data/%name%.yml.tt
+6
-1
| @@ | @@ -1 +1,6 @@ |
| - | %name%.yml.tt |
| \ No newline at end of file | |
| + | <% 4.times do |i| -%> |
| + | - "Sample <%= i + 1 %>": |
| + | <% config[:fields][1..-1].each do |field| -%> |
| + | - <%= field.name -%>: <some value from Faker> |
| + | <% end -%> |
| + | <% end -%> |
| \ No newline at end of file | |