mirror of
https://gitea.invidious.io/iv-org/shard-kilt.git
synced 2024-08-15 00:43:15 +00:00
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:
commit
ba34ef159b
11 changed files with 15 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
|||
require "../spec_helper"
|
||||
require "../../src/kilt/crustache"
|
||||
require "../../src/crustache"
|
||||
|
||||
class MustacheView
|
||||
def has_key?(name)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require "../spec_helper"
|
||||
require "../../src/kilt/slang"
|
||||
require "../../src/slang"
|
||||
|
||||
class SlangView
|
||||
Kilt.file "spec/fixtures/test.slang"
|
||||
|
|
|
@ -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
4
src/crustache.cr
Normal file
|
@ -0,0 +1,4 @@
|
|||
require "./kilt"
|
||||
require "crustache"
|
||||
|
||||
Kilt.register_engine "mustache", embed_mustache
|
|
@ -32,4 +32,4 @@ module Kilt
|
|||
end
|
||||
end
|
||||
|
||||
require "./kilt/ecr"
|
||||
require "./ecr"
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
require "../kilt"
|
||||
require "crustache"
|
||||
|
||||
Kilt.register_engine "mustache", embed_mustache
|
|
@ -1,4 +0,0 @@
|
|||
require "../kilt"
|
||||
require "slang"
|
||||
|
||||
Kilt.register_engine "slang", Slang.embed
|
|
@ -1,3 +1,3 @@
|
|||
module Kilt
|
||||
VERSION = "0.3.0"
|
||||
VERSION = "0.3.1"
|
||||
end
|
||||
|
|
4
src/slang.cr
Normal file
4
src/slang.cr
Normal file
|
@ -0,0 +1,4 @@
|
|||
require "./kilt"
|
||||
require "slang"
|
||||
|
||||
Kilt.register_engine "slang", Slang.embed
|
|
@ -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
|
||||
|
Loading…
Reference in a new issue