slime-lang / slime

Minimalistic HTML templates for Elixir, inspired by Slim.
http://slime-lang.com
MIT License
371 stars 57 forks source link

Support colon and special character for tailwind #162

Closed AbdullahDahmash closed 3 years ago

AbdullahDahmash commented 4 years ago

Hello

I believe this issue should have handled in different way

.relative.sm:pb-16.md:pb-20.lg:pb-28

Now it is converted to

<div class="relative sm">
  <pb-16 class="md">
    <pb-20 class="lg">
      <pb-28>
      </pb-28>
    </pb-20>
  </pb-16>
</div>

But it should be converted to

<div class="relative sm:pb-16 md:pb-20 lg:pb-28">
</div>
AbdullahDahmash commented 4 years ago

Similar to https://github.com/slim-template/slim/pull/841

doomspork commented 4 years ago

Thanks @AbdullahDahmash! @Rakoth or I will try to get to this in the not-so-distant future but if you'd like to give it a whirl PRs are welcomed :tada:

AbdullahDahmash commented 3 years ago

@doomspork I'm bit lost, can you give me hint where should I start?