Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

FastHTML has a NotStr(X) component that renders X as HTML.

I just copied a big HTML Tailwind component to a NotStr() and it worked fine.

I then split it in two, before and after, so I could make the dynamic bit from natural FastHTML components and it worked fine returning Div(before, dynamic_parts, after).

Plan to convert most of my smaller websites to FastHTML in the next few days before it's much more enjoyable for me.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: