mirror of
https://gitea.invidious.io/iv-org/shard-kilt.git
synced 2024-08-15 00:43:15 +00:00
some more info in the readme
This commit is contained in:
parent
f31dad17d7
commit
0e5ab4338d
2 changed files with 4 additions and 2 deletions
|
@ -10,7 +10,7 @@ Simplify developers' lives by abstracting template rendering for multiple templa
|
||||||
|
|
||||||
| Language | File extensions | Required libraries |
|
| Language | File extensions | Required libraries |
|
||||||
| -------- | --------------- | ------------------ |
|
| -------- | --------------- | ------------------ |
|
||||||
| ECR | .ecr | none |
|
| ECR | .ecr | none (part of the stdlib) |
|
||||||
| Slang | .slang | [slang](https://github.com/jeromegn/slang) |
|
| Slang | .slang | [slang](https://github.com/jeromegn/slang) |
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
@ -25,6 +25,8 @@ dependencies:
|
||||||
# Any other template languages Crystal shard
|
# Any other template languages Crystal shard
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Kilt essentially adds two macros `Kilt.embed` and `Kilt.file`, the code is really simple.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Add template language dependencies, as listed in the support table above.
|
Add template language dependencies, as listed in the support table above.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
require "spec"
|
require "spec"
|
||||||
require "slang"
|
|
||||||
require "../src/kilt"
|
require "../src/kilt"
|
||||||
|
require "slang"
|
||||||
|
|
||||||
macro render_file(filename)
|
macro render_file(filename)
|
||||||
String.build do |__io__|
|
String.build do |__io__|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue