Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove creole #1792

Merged
merged 3 commits into from
Jul 17, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove creole
  • Loading branch information
epergo committed Jul 17, 2022
commit 7d1bb9726975ae501fd0909ce15df372a5228091
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ gem 'eventmachine'
gem 'slim', '~> 4'
gem 'rdoc'
gem 'kramdown'
gem 'creole'
gem 'markaby'
gem 'radius'
gem 'asciidoctor'
Expand Down
4 changes: 0 additions & 4 deletions lib/sinatra/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -750,10 +750,6 @@ def slim(template, options = {}, locals = {}, &block)
render(:slim, template, options, locals, &block)
end

def creole(template, options = {}, locals = {})
render :creole, template, options, locals
end

def yajl(template, options = {}, locals = {})
options[:default_content_type] = :json
render :yajl, template, options, locals
Expand Down
5 changes: 0 additions & 5 deletions sinatra-contrib/lib/sinatra/engine_tracking.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ def slim?
@current_engine == :slim
end

# @return [Boolean] Returns true if current engine is `:creole`.
def creole?
@current_engine == :creole
end

# @return [Boolean] Returns true if current engine is `:ruby`.
def ruby?
@current_engine == :ruby
Expand Down
2 changes: 1 addition & 1 deletion sinatra-contrib/lib/sinatra/namespace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ module NamespacedMethods
ALLOWED_ENGINES = [
:erb, :erubi, :haml, :hamlit, :builder, :nokogiri,
:liquid, :markdown, :rdoc, :asciidoc, :radius, :markaby,
:rabl, :slim, :creole, :yajl
:rabl, :slim, :yajl
]

def self.prefixed(*names)
Expand Down
1 change: 0 additions & 1 deletion sinatra-contrib/sinatra-contrib.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ EOF
s.add_development_dependency "asciidoctor"
s.add_development_dependency "radius"
s.add_development_dependency "nokogiri"
s.add_development_dependency "creole"
s.add_development_dependency "markaby"
s.add_development_dependency "rake", "< 11"
s.add_development_dependency "rack-test", "< 2"
Expand Down
65 changes: 0 additions & 65 deletions test/creole_test.rb

This file was deleted.

1 change: 0 additions & 1 deletion test/views/hello.creole

This file was deleted.