Wednesday, April 11, 2012

Generate json array of directory in Ruby?

I'm trying to write a Jekyll plugin which generates an array of pages in a directory in a json file. So for a directory which contains foo.html and a sub-directory foo containing bar.html, it'd generate "foo, /foo/bar". I'm completely new to Ruby, does somone have any pointers?

No comments:

Post a Comment