Skip to content

Conversation

hugopl
Copy link
Contributor

@hugopl hugopl commented Jul 17, 2025

Summary

Slang is basically a Slim template language for Crystal language, so the very same Slim parser works fine.

Slim template: https://github.com/slim-template/slim
Slang template: https://github.com/jeromegn/slang

Test plan

Create a simple slang file with some tailwind-css and check if the CSS is being extracted:

doctype html
html
  head
    title This is a title
  body.min-h-screen
    header.stick.top-0.z-10
      section.max-w-4xl.mx-auto.p-4.flex.items-center.justify-between
        h1.text-3xl.font-medium This is a slang file

To test it, get any slim template, rename the extension to .slang

Fixes #17851

Slang is basically a Slim template language for Crystal language, so the
very same Slim parser works fine.

Slim template: https://github.com/slim-template/slim
Slang template: https://github.com/jeromegn/slang
@hugopl hugopl requested a review from a team as a code owner July 17, 2025 17:22
@thecrypticace thecrypticace self-assigned this Jul 17, 2025
@thecrypticace thecrypticace merged commit 298ad08 into tailwindlabs:main Jul 17, 2025
7 checks passed
@thecrypticace
Copy link
Contributor

thanks!

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

Successfully merging this pull request may close these issues.

Tailwind v4 is not seeing classes in slang templates
2 participants