diff options
author | B Mathis <brandon@imathis.com> | 2010-03-10 12:23:30 -0600 |
---|---|---|
committer | B Mathis <brandon@imathis.com> | 2010-03-10 12:23:30 -0600 |
commit | eefe29e5d0b6caab2f6bfcab7a10dbf43e208ac3 (patch) | |
tree | e96d83dbea8e1a323a7705f9a3060f5cd6e7eb02 /source/_helpers.rb | |
parent | 1957c1249917c362b3d5ae96f36f2c3d81aa5e58 (diff) | |
download | my_new_personal_website-eefe29e5d0b6caab2f6bfcab7a10dbf43e208ac3.tar.xz my_new_personal_website-eefe29e5d0b6caab2f6bfcab7a10dbf43e208ac3.zip |
now Octopress uses partials
Diffstat (limited to 'source/_helpers.rb')
-rw-r--r-- | source/_helpers.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/_helpers.rb b/source/_helpers.rb index b1714569..11d78523 100644 --- a/source/_helpers.rb +++ b/source/_helpers.rb @@ -111,8 +111,6 @@ module Helpers end include TagHelper - # My added helpers - def to_html_email(address) email = string_to_html(address) "<a href=\"#{string_to_html('mailto:')}#{email}\">#{email}</a>" @@ -165,7 +163,7 @@ module Helpers # A very hackish way to handle partials. We'll go with it till it breaks... def include(partial_name) file_ext = partial_name[(partial_name.index('.') + 1)..partial_name.length] - contents = IO.read("_includes/#{partial_name}") + contents = IO.read("source/_includes/#{partial_name}") case file_ext when 'haml' Haml::Engine.new(contents).render(binding) @@ -180,6 +178,7 @@ module Helpers end include PartialsHelper + end class String |