https://github.com/crystal-garage/kemal-kilt
Kilt templating interface helpers for Kemal
https://github.com/crystal-garage/kemal-kilt
crystal kemal kilt
Last synced: 27 days ago
JSON representation
Kilt templating interface helpers for Kemal
- Host: GitHub
- URL: https://github.com/crystal-garage/kemal-kilt
- Owner: crystal-garage
- License: mit
- Created: 2022-11-08T20:24:31.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-14T09:56:22.000Z (10 months ago)
- Last Synced: 2025-06-11T13:48:06.309Z (5 months ago)
- Topics: crystal, kemal, kilt
- Language: Crystal
- Homepage:
- Size: 11.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kemal-kilt
[](https://github.com/crystal-garage/kemal-kilt/actions/workflows/crystal.yml)
[](https://github.com/crystal-garage/kemal-kilt/releases)
Kilt templating interface helpers for Kemal
> Since Kemal 1.2 Kilt removed as dependency in
>
> This shard restores removed functionality.
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
kemal-kilt:
github: crystal-garage/kemal-kilt
# For slang, add:
slang:
github: jeromegn/slang
# Any other template languages Crystal shard
```
2. Run `shards install`
## Usage
```crystal
require "kemal"
require "kemal-kilt"
# For slang, add:
require "kilt/slang"
get "/:name" do |env|
name = env.params.url["name"]
render "src/views/index.slang"
end
```
```slim
doctype html
html
head
title This is a title
body
| Hello #{name}
```
## Development
```
KEMAL_ENV=test crystal spec
```
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Anton Maminov](https://github.com/mamantoha) - creator and maintainer