I'm looking for a good static site generator. I'm looking into either Jekyll / Octopress (Ruby) or maybe Phrozn or PieCrust (PHP). I only have one thing that holds me back:
How do I create a sidebar widget that reads data from a JSON file at build/compile time and generate a static page based from the data? A particular use case is when I have a JSON file of events and I want to show them on a static page as a list of events of the week on a sidebar.
I know I could simply use client-side Javascript to load and process that JSON file and then manipulate the DOM but I am sure that this is not a good idea.
Currently, I'm using PyroCMS and I placed this custom code as part of the template. (Not ideal, I know. Didn't bother to fix it since I'm planning to migrate away from PyroCMS anyway.)
I prefer to use Jekyll (really functional) or Phrozn or PieCrust (because I can reuse my previous PHP code) but I cannot see how to create a semi-dynamic page like the one I described above. I'm open to other static site generators as well -- as long as they are in PHP, Ruby, or Python.
Thank you in advance for you help.