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

@ -1,7 +1,7 @@
{{{
;;;
"layout": false,
"title": "This is the title"
}}}
;;;
<h1><%= data.page.title %></h1>
<?php echo "sup"; ?>

View file

@ -1,6 +1,6 @@
{{{
;;;
"layout": false,
"title": "This is the title"
}}}
;;;
<h1><%= data.page.title %></h1>

View file

@ -1,6 +1,6 @@
{{{
;;;
"layout": false,
"title": "This is the title"
}}}
;;;
<h1><%= data.page.title %></h1>

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}"