alphagov/govuk-component-guide — pull request #8 by tommyp (2014-12-01 16:52:05+00:00)
Title: Fix example code

JSON.pretty_generate returns JSON which isn't valid Ruby and can't be used to pass locals into a partial. This commit adds a gsub to generate correct Ruby hashes using the `"key" => value` syntax.