Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tilt template removed

creole is supported by tilt core now
  • Loading branch information...
commit feb867af7b269d656282d04435f4cf851e477610 1 parent e648090
@minad authored
View
4 creole.gemspec
@@ -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
21 lib/creole/template.rb
@@ -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
2  lib/creole/version.rb
@@ -1,3 +1,3 @@
module Creole
- VERSION = '0.4.1'
+ VERSION = '0.4.2'
end
View
12 test/template_test.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.