6 ms·
I've been playing with a similar syntax: https://github.com/maplambda/py-htmlout/blob/master/htmlgen.py https://github.com/maplambda/py-htmlout/blob/master/html
by catch404 15y ago
I've been playing with a similar syntax: https://github.com/maplambda/py-htmlout/blob/master/htmlgen.py https://github.com/maplambda/py-htmlout/blob/master/htmlgen.... I need to provide better examples, tests and form handling. I'm finding it nice to work with.
- abecedarius 15y agoLooks good. My own module of this sort auto-escapes HTML special characters in strings fed to it, by default -- it looks like yours doesn't do this, at least at first glance. Is that right? OTOH I think I like your syntax better.
- catch404 15y agoThanks, that would be a good approach, mine is currently very barebones! just trying to get the syntax right and get a feel for using it in actual projects - hope to put up a real sample soon.