Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kilt dependency and Kemal #61

Open
lebogan opened this issue Sep 8, 2021 · 3 comments
Open

Kilt dependency and Kemal #61

lebogan opened this issue Sep 8, 2021 · 3 comments

Comments

@lebogan
Copy link

lebogan commented Sep 8, 2021

Not an issue yet :
I have been using slang for some time for its simple elegance. Like slim, it helps me avoid the embedded syntax structures. Kemal is removing kilt dependency. How is that going to affect slang going forward? Will I be tied to ecr again? Ugh!

Thank you for writing this shard in the first place. I have quite a few apps in production that depend on it.

@jeromegn
Copy link
Owner

jeromegn commented Sep 8, 2021

You should still be able to use it! If you look at this issue, it provides some hints: kemalcr/kemal#615

You can also still include kilt in your dependencies and use it like:

Kilt.render("path/to/file.slang")

(I think)

@lebogan
Copy link
Author

lebogan commented Sep 20, 2021

Not too sure how to do this. Currently my slang files are not being rendered to html. I am using the master branch from both slang and kemal. I tried including kilt as a dependency. No go. Using this macro:

macro my_renderer(filename)
    render("src/views/#{{{filename}}}.slang", "src/views/layouts/layout.slang")
end

I tried not using the master branch of kemal and slang renders fine. Not sure how this will all play out going forward. Do I still require "kilt/slang"?

@jeromegn
Copy link
Owner

There's probably more to it then that, but you'll still need to require "kilt/slang" yes.

Kemal does something with layouts and views that's not supported out of the box with kilt or slang. Whatever allows them to do <%= content %> in layout templates.

@sdogruyol what do you tell users to do now? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants