diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -33,5 +33,11 @@ YAML and JSON ------------- JSON versions of the YML specs were created using a simple ruby script: + + require 'json' # Make sure you're using SYCK + require 'yaml' + Dir.glob("Mustache-Spec/specs/*").collect{|f| ff=f.gsub("yml","json"); File.open(ff,'w'){|x| x << YAML.parse(File.open(f)).transform.to_json}} - Dir.glob("Mustache-Spec/specs/*").collect{|f| ff=f.gsub("yml","json"); File.open(ff,'w'){|x| x << YAML.parse(File.open(f)).transform.to_json}}
\ No newline at end of file +Which has been included as a Rake task: + + rake build:json
\ No newline at end of file |