aboutsummaryrefslogtreecommitdiff
path: root/plugins/include_code.rb
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-08-01 16:23:17 -0400
committerBrandon Mathis <brandon@imathis.com>2011-08-01 16:28:07 -0400
commit6009daa8a215903506509227380a4ea09b8b6f25 (patch)
tree646b4daca69a66945470829520354e95506f63ec /plugins/include_code.rb
parentff1dba19f2f08e31a928778bdd94663b98d7dc19 (diff)
downloadmy_new_personal_website-6009daa8a215903506509227380a4ea09b8b6f25.tar.xz
my_new_personal_website-6009daa8a215903506509227380a4ea09b8b6f25.zip
code_block and inlcude_code no longer needlessly render through the Liquid template parser
Diffstat (limited to 'plugins/include_code.rb')
-rw-r--r--plugins/include_code.rb4
1 files changed, 0 insertions, 4 deletions
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 = "<div><figure role=code><figcaption><span>#{title}</span> <a href='#{url}'>download</a></figcaption>\n"
source += " #{highlight(code, @filetype)}</figure></div>"
- partial = Liquid::Template.parse(source)
- context.stack do
- partial.render(context)
- end
end
end
end