slang
slang copied to clipboard
Slim-inspired templating language for Crystal
Can the README file be updated to clarify whether the pug -> html translation occurs at which of the following: - compile time - application initiation - first render -...
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...
Changes: - all spaces are removed just like ReactJs does, so output code is almost minified - small refactoring for children nodes rendering - code inside `javascript:` and `css:` section...
So this ``` a href="#" span | Contacts ``` is translated to such html: ``` Contacts ``` But I want it to be without space between span and text like...
javascript: let foo = "bar\nbaz"; currently erroneously renders as let foo = "bar baz"; I believe the backslash in HTML (or JavaScript) should be passed literally, not interpreted as string...
Is it possible to type plain HTML in a slang file?
This template: ```text div ``` Causes this compile time error: ```text Syntax error in expanded macro: macro_4629572560:239: unexpected token: DELIMITER_START __kilt_io__
in Slim, you can take multiple lines to set attributes on a tag, if you use an attribute wrapper. For example, here's something I just tried: ```slim script{ defer crossorigin="anonymous"...
It would be great if it was possible to minify HTML output to save bytes. Most of the time, there is no need to output whitespaces. Maybe specify it with...
I've been using Slang for a while in my Kemal project, but I noticed a while ago that whenever I tried to include some other page in my layout, I...