Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

tilt template removed

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

0 comments on commit feb867a

Please sign in to comment.
Something went wrong with that request. Please try again.