Rebase paths and add Temel as template engine

* 'master' of https://github.com/jeromegn/kilt:
  bump 0.3.1
  Move adapter files to src/
This commit is contained in:
Fatih Kadir Akın 2016-02-16 15:30:40 +02:00
commit ba34ef159b
11 changed files with 15 additions and 15 deletions

View file

@ -1,5 +1,5 @@
require "../spec_helper"
require "../../src/kilt/crustache"
require "../../src/crustache"
class MustacheView
def has_key?(name)

View file

@ -1,5 +1,5 @@
require "../spec_helper"
require "../../src/kilt/slang"
require "../../src/slang"
class SlangView
Kilt.file "spec/fixtures/test.slang"

View file

@ -1,5 +1,5 @@
require "../spec_helper"
require "../../src/kilt/temel"
require "../../src/temel"
class TemelView
Kilt.file "spec/fixtures/test.temel"

4
src/crustache.cr Normal file
View file

@ -0,0 +1,4 @@
require "./kilt"
require "crustache"
Kilt.register_engine "mustache", embed_mustache

View file

@ -32,4 +32,4 @@ module Kilt
end
end
require "./kilt/ecr"
require "./ecr"

View file

@ -1,4 +0,0 @@
require "../kilt"
require "crustache"
Kilt.register_engine "mustache", embed_mustache

View file

@ -1,4 +0,0 @@
require "../kilt"
require "slang"
Kilt.register_engine "slang", Slang.embed

View file

@ -1,3 +1,3 @@
module Kilt
VERSION = "0.3.0"
VERSION = "0.3.1"
end

4
src/slang.cr Normal file
View file

@ -0,0 +1,4 @@
require "./kilt"
require "slang"
Kilt.register_engine "slang", Slang.embed

View file

@ -1,8 +1,8 @@
require "../kilt"
require "./kilt"
require "temel"
macro embed_temel(filename, __kilt_io__)
__kilt_io__ << {{ run("./helpers/temel_embedder.cr", filename) }}
__kilt_io__ << {{ run("./kilt/helpers/temel_embedder.cr", filename) }}
__kilt_io__
end