From 6009daa8a215903506509227380a4ea09b8b6f25 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Mon, 1 Aug 2011 16:23:17 -0400 Subject: code_block and inlcude_code no longer needlessly render through the Liquid template parser --- plugins/code_block.rb | 4 ---- plugins/include_code.rb | 4 ---- 2 files changed, 8 deletions(-) diff --git a/plugins/code_block.rb b/plugins/code_block.rb index cdb12307..86708285 100644 --- a/plugins/code_block.rb +++ b/plugins/code_block.rb @@ -84,10 +84,6 @@ module Jekyll source += "
" + code.lstrip.rstrip.gsub(/
" end source = source + context['pygments_suffix'] if context['pygments_suffix'] - partial = Liquid::Template.parse(source) - context.stack do - partial.render(context) - end end end end diff --git a/plugins/include_code.rb b/plugins/include_code.rb index ec72006c..f2b8e37b 100644 --- a/plugins/include_code.rb +++ b/plugins/include_code.rb @@ -59,10 +59,6 @@ module Jekyll url = "#{context.registers[:site].config['url']}/#{code_dir}/#{@file}" source = "
#{title} download
\n" source += " #{highlight(code, @filetype)}
" - partial = Liquid::Template.parse(source) - context.stack do - partial.render(context) - end end end end -- cgit v1.2.1