Browse code

code_block and inlcude_code no longer needlessly render through the Liquid template parser

Brandon Mathis authored on 01/08/2011 at 20:23:17
Showing 2 changed files
... ...
@@ -84,10 +84,6 @@ module Jekyll
84 84
         source += "<pre><code>" + code.lstrip.rstrip.gsub(/</,'&lt;') + "</code></pre></figure></div>"
85 85
       end
86 86
       source = source + context['pygments_suffix'] if context['pygments_suffix']
87
-      partial = Liquid::Template.parse(source)
88
-      context.stack do
89
-        partial.render(context)
90
-      end
91 87
     end
92 88
   end
93 89
 end
... ...
@@ -59,10 +59,6 @@ module Jekyll
59 59
         url = "#{context.registers[:site].config['url']}/#{code_dir}/#{@file}"
60 60
         source = "<div><figure role=code><figcaption><span>#{title}</span> <a href='#{url}'>download</a></figcaption>\n"
61 61
         source += " #{highlight(code, @filetype)}</figure></div>"
62
-        partial = Liquid::Template.parse(source)
63
-        context.stack do
64
-          partial.render(context)
65
-        end
66 62
       end
67 63
     end
68 64
   end