summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/README.md b/README.md
index fb16524..384b514 100644
--- a/README.md
+++ b/README.md
@@ -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