change json frontmatter delimeter to the ironic ;;; to avoid interfering with mustache {{{

This commit is contained in:
Thomas Reynolds 2012-05-25 12:52:04 -07:00
parent d79acc7a78
commit dcdbf3e110
4 changed files with 7 additions and 7 deletions

View file

@ -104,7 +104,7 @@ module Middleman::CoreExtensions
content = content.sub(json_regex, "")
begin
json = ($1+$2).sub("{{{", "{").sub("}}}", "}")
json = ($1+$2).sub(";;;", "{").sub(";;;", "}")
data = ActiveSupport::JSON.decode(json)
rescue => e
puts "JSON Exception: #{e.message}"