Haml
kotlinx.html
Haml | kotlinx.html | |
---|---|---|
25 | 11 | |
3,744 | 1,556 | |
-0.0% | 1.0% | |
7.3 | 7.4 | |
about 1 month ago | 5 days ago | |
Ruby | Kotlin | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Haml
-
XRB alternatives - Haml, Slim, and Hamlit
4 projects | 30 Apr 2024
-
Building a syntax highlighting extension for VS Code
First of all, I like Slim. I like the beauty and cleanness of Slim templates, to me they are way more readable than regular ERB templates and I think they fit in the ruby/Rails ecosystem very well. Slim is a close cousin to Haml, without the ugly percent characters, haha. I've used Slim exclusively in my projects since about 2016.
-
Hamlet: A type-safe Haml template engine for Go
> I can't say what problem it is supposed to solve
"Haml accelerates and simplifies template creation" https://haml.info/
If you'd rather write raw HTML, keeping track of closing tags etc, then don't use HAML. No need to bash it because you personally feel it is ugly or unnecessary. FWIW I personally feel the exact opposite.
-
Any web frameworks that could compare to Symfony?
Personally, I'd recommend Maud if you don't need something with runtime reloading. Not only is it much faster, it implements a template language that is effectively the Rust-syntax equivalent to Slim or Haml using a procedural macro, so you get compile-time verification that your HTML output is well-formed.
-
Rux: A JSX-inspired way to render view components in Ruby
Does this support HAML-style syntax? We're 100% HAML-only for templating, whether normal Rails views or ViewComponent... https://github.com/haml/haml https://haml.info/ so going back to writing HTML or ERB feels like a huge downgrade.
-
Anyone from a Typescript/React background who tried out Rust for the 1st time?
For templating, Maud is fast, gives compile-time well-formedness guarantees, and outputs minified HTML by default as a side-effect of it being based on Rust macros. (It's of a similar design philosophy to Slim and Haml)
-
Why must closing tags in HTML and XML contain the name of the tag being closed, if the tag being closed can be determined by the order they were opened?
You don’t even need closing tags. Both Haml and Jade do away with closing tags altogether.
-
Goddamn this tastes like eternal suffering.
That looks awfully like HAML.
-
I taught the chat bot an alternative syntax for HTML, called HBML, basically just braces instead of tags... we are so screwed
Your HBML is similar to HAML - is it time for HCML? https://haml.info/
-
Guess what kind of project i am building currently
it's an HTML preprocessor called HAML
kotlinx.html
-
How to use htmx with ktor
1 Clone this repo https://github.com/tom-delalande/html-to-kotlin-converter and open in intellij 2 In the root of that project folder, create input.txt and add the component/html that you want to convert (feel free to pick a component from tailwind), run main in that project and it'll be converted to kotlin ktor html DSL in output.txt (basically, that's the readme of that project lol) 3 in your ktor project (make sure you already added ktor-html from kotlin team), respond to a route like so
-
Dart 3 will be on pair with Kotlin and other top languages (you can see more features in the proposal)
As for the strange infix syntax, you're correct - it's not important (for Dart anyway). Kotlin supports writing code that have DSL like syntax making things like typesafe HTML or Jetpack Compose possible.
- I taught the chat bot an alternative syntax for HTML, called HBML, basically just braces instead of tags... we are so screwed
-
"A New Programming Metric": my attempt to come up with a better way of handling the "how good are you at a programming language" question.
I'm not familiar with JavaEE/JSP so I cannot really answer that, why do these technologies need a special IDE? Does JSP even make sense with Kotlin? If I was stuck with JSP I'd probably use Java since that's what JSP was made for. Kotlin has other solutions like https://github.com/Kotlin/kotlinx.html
-
Create any kind of app with Kotlin
Html DSL in Kotlin. See it on Github.
-
How do you imoprt custom fonts in Kotlin/JS?
If so, and if they don't provide an easy way to set a font family list, you may have to escape into a raw block: https://github.com/Kotlin/kotlinx.html/wiki/Style-and-script-tags
-
Building a DOM DSL in Kotiln
You might like to leave a comment here, someone requested svg support in the Kotlin HTML dsl https://github.com/Kotlin/kotlinx.html/issues/144
- Is there an equivalent for Compose Web for server side Kotlin apps?
-
Show HN: Imba – I have spent 7 years creating a programming language for the web
Thanks for sharing, I really like projects like this. And the website is really informative.
I find it less of a new language and more of a JS preprocessor, removing lots of the cruft and integrating XML-tags and CSS in a very neat way.
What I miss:
1) I feel the web is shifting to more type checking. TS, Elm, Kotlin.js... I personally also prefer more typesafety, especially if the project grows in LOC/team size.
2) Compared to JSX, Imba does a much better job in integrating adjacent technologies. Though I much prefer these to be integrated in an eDSL fashion. For example how Elm does HTML templating (in Elm) or Kotlinx.html[1].
Just taste i guess. Good luck with yr project!
[1]: https://github.com/Kotlin/kotlinx.html
-
Kotlin Team AMA #3: Ask Us Anything
I do use kotlinx.html and while there is a lack of the documentation about the tags, most of them are already implemented (as far as I know they are automatically generated) and the ones that aren't automatically generated can be implemented manually in your own project.
What are some alternatives?
Slim - Slim is a template language whose goal is to reduce the syntax to the essential parts without becoming cryptic.
http4k - The Functional toolkit for Kotlin HTTP applications. http4k provides a simple and uniform way to serve, consume, and test HTTP services.
Liquid - Liquid markup language. Safe, customer facing template language for flexible web apps.
vertx-lang-kotlin - Vert.x for Kotlin
Hamlit - High Performance Haml Implementation
ktor - Framework for quickly creating connected applications in Kotlin with minimal effort
Sanitize - Ruby HTML and CSS sanitizer.
spark-kotlin - A Spark DSL in idiomatic kotlin // dependency: com.sparkjava:spark-kotlin:1.0.0-alpha
Mustache - Logic-less Ruby templates.
javalin - A simple and modern Java and Kotlin web framework [Moved to: https://github.com/javalin/javalin]
Arbre - An Object Oriented DOM Tree in Ruby
kotlinx.serialization - Kotlin multiplatform / multi-format serialization