Closed alexandermalyga closed 4 months ago
Hi @alexandermalyga! Thanks for reporting this issue! I was not aware that Tailwind used both dots and hashtags in classnames.
Please give 24.7.1 a try, it should use the class_
argument automatically if detects # or . as part of the class attribute.
Hi, thanks for the amazing work on this project! I've been using the
html2htpy
tool to convert TailwindUI templates into Python code, but I'm facing an issue where classes with the#
symbol in their names produceValueError("id (#) must be specified before classes (.)")
errors. For example:produces
which then raises the above error when rendering.
This can be fixed by using explicit
class_=
parameters, and I think it would be nice ifhtml2htpy
detected this and did it automatically. WDYT?