Permalink
Browse files

tilt template removed

creole is supported by tilt core now
  • Loading branch information...
minad committed May 2, 2011
1 parent e648090 commit feb867af7b269d656282d04435f4cf851e477610
Showing with 3 additions and 36 deletions.
  1. +2 −2 creole.gemspec
  2. +0 −21 lib/creole/template.rb
  3. +1 −1 lib/creole/version.rb
  4. +0 −12 test/template_test.rb
View
@@ -8,13 +8,13 @@ Gem::Specification.new do |s|
s.date = Date.today.to_s
s.authors = ['Lars Christensen', 'Daniel Mendler']
+ s.email = ['larsch@belunktum.dk', 'mail@daniel-mendler.de']
s.summary = 'Lightweight markup language'
s.description = 'Creole is a lightweight markup language (http://wikicreole.org/).'
- s.email = ['larsch@belunktum.dk', 'mail@daniel-mendler.de']
s.extra_rdoc_files = %w(README.creole)
s.rubyforge_project = s.name
- s.files = `git ls-files -- lib/* bin/* README* test/* Rakefile`.split("\n")
+ s.files = `git ls-files`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = %w(lib)
View
@@ -1,21 +0,0 @@
-require 'tilt'
-require 'creole'
-
-module Creole
- class Template < Tilt::Template
- def prepare
- opts = {}
- [:allowed_schemes, :extensions, :no_escape].each do |k|
- opts[k] = options[k] if options[k]
- end
- @creole = Creole::Parser.new(data, opts)
- @output = nil
- end
-
- def evaluate(scope, locals, &block)
- @output ||= @creole.to_html
- end
- end
-end
-
-Tilt.register 'creole', Creole::Template
View
@@ -1,3 +1,3 @@
module Creole
- VERSION = '0.4.1'
+ VERSION = '0.4.2'
end
View
@@ -1,12 +0,0 @@
-require 'creole/template'
-
-describe Creole::Template do
- it 'should be registered for .creole files' do
- Tilt.mappings['creole'].should.equal Creole::Template
- end
-
- it 'should prepare and evaluate templates on #render' do
- template = Creole::Template.new { |t| '= Hello World!' }
- 3.times { template.render.should.equal '<h1>Hello World!</h1>' }
- end
-end

0 comments on commit feb867a

Please sign in to comment.