Sha256: 25f5f22338f181840d47f2e7d0536745653b3f3a5a8bee0cd3a874262ec181df

Contents?: true

Size: 346 Bytes

Versions: 9

Compression:

Stored size: 346 Bytes

Contents

module ThemeHelper
  # adds per theme helpers if file exists. Ugly but at least it works.
  # Use : just add your methods in yourtheme/helpers/theme_helper.rb
  unless Blog.default.nil?
    require "#{Blog.default.current_theme.path}/helpers/theme_helper.rb" if File.exists? "#{Blog.default.current_theme.path}/helpers/theme_helper.rb"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
typo-5.5 app/helpers/theme_helper.rb
typo-5.4.4 app/helpers/theme_helper.rb
typo-5.4.3 app/helpers/theme_helper.rb
typo-5.4.2 app/helpers/theme_helper.rb
typo-5.4.1 app/helpers/theme_helper.rb
typo-5.4 app/helpers/theme_helper.rb
typo-5.2.98 app/helpers/theme_helper.rb
typo-5.2 app/helpers/theme_helper.rb
typo-5.3 app/helpers/theme_helper.rb