News for hackers. Stuff that matters.
Re:Show HN: Htpy – generate HTML from Python without templates by pelme on Sunday April 28, 2024 @07:28AM (#40187783)
Writing out the code to generate this may not be easier than using templates, but it is not really harder either. I think it mostly looks a little different.

The real benefit is using this bootstrap modal component within your app, since it is just a regular function call. You can leverage your editor "goto definition" and static type checking within all the functions make up your web sites/apps HTML.

There are no comments on this comment yet.