Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1 from jsntv200/require

require RedCloth and declare as a config.gem
  • Loading branch information...
commit f4b76b8249170b851a22497ec494ea342a0a8d1f 2 parents e9cb28c + 7473137
@johnmuhl johnmuhl authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 textile_filter_extension.rb
View
8 textile_filter_extension.rb
@@ -1,10 +1,16 @@
+require "RedCloth"
+
class TextileFilterExtension < Radiant::Extension
version "1.0.0"
description "Allows you to compose page parts or snippets using the Textile text filter."
url "http://textism.com/tools/textile/"
+ extension_config do |config|
+ config.gem "RedCloth", :version => ">= 4.2.0"
+ end
+
def activate
TextileFilter
Page.send :include, TextileTags
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.