remove unused badges from readme and format code

This commit is contained in:
Anton Maminov 2018-11-05 22:40:15 +02:00
parent 0339265b3d
commit c680398930
9 changed files with 10 additions and 15 deletions

View file

@ -1,4 +1,4 @@
# Kilt [![Build Status](https://travis-ci.org/jeromegn/kilt.svg?branch=master)](https://travis-ci.org/jeromegn/kilt) [![Dependency Status](https://shards.rocks/badge/github/jeromegn/kilt/status.svg)](https://shards.rocks/github/jeromegn/kilt) [![devDependency Status](https://shards.rocks/badge/github/jeromegn/kilt/dev_status.svg)](https://shards.rocks/github/jeromegn/kilt)
# Kilt [![Build Status](https://travis-ci.org/jeromegn/kilt.svg?branch=master)](https://travis-ci.org/jeromegn/kilt)
Generic templating interface for Crystal.

View file

@ -14,7 +14,6 @@ class MustacheView
end
describe "kilt/crustache" do
it "renders crustache" do
Kilt.render("spec/fixtures/test.mustache", {"pid" => Process.pid}).should eq("<span>#{Process.pid}</span>")
end
@ -22,5 +21,4 @@ describe "kilt/crustache" do
it "works with classes" do
MustacheView.new.to_s.should eq("<span>#{Process.pid}</span>")
end
end

View file

@ -13,6 +13,7 @@ class LiquidViewWithCustomContext
@context = Liquid::Context.new
@context.set "process", {"pid" => Process.pid}
end
Kilt.file "spec/fixtures/test.liquid", "__kilt_io__", "@context"
end

View file

@ -6,7 +6,6 @@ class SlangView
end
describe "kilt/slang" do
it "renders slang" do
Kilt.render("spec/fixtures/test.slang").should eq("<span>#{Process.pid}</span>")
end
@ -14,5 +13,4 @@ describe "kilt/slang" do
it "works with classes" do
SlangView.new.to_s.should eq("<span>#{Process.pid}</span>")
end
end

View file

@ -5,7 +5,6 @@ class View
end
describe Kilt do
it "renders ecr" do
Kilt.render("spec/fixtures/test.ecr").should eq("<span>#{Process.pid}</span>")
end
@ -24,5 +23,4 @@ describe Kilt do
Kilt.register_engine "raw", Raw.embed
Kilt.render("spec/fixtures/test.raw").should eq("Hello World!")
end
end