Re: [Python-ideas] HTML Wrapper

2019-03-15 Thread Vlad Tudorache
Hello, Steven, This wasn't a question asking for support. The answers I found when searching were different from what I needed, that's why I'm using my own. But I understand the point. Regards, Vlad Le jeu. 14 mars 2019 à 23:43, Steven D'Aprano a écrit : > Hi Vlad, and welcome! > > On Thu,

Re: [Python-ideas] HTML Wrapper

2019-03-14 Thread Christopher Barker
This is very much the kind of thing that would belong in a library. There's probably more than one out there right now. In fact, way back when I started learning Python (almost 20 yrs ago!)), there was such a lib -- I think it was called HTMLgen. However, since then, most people have decided that

Re: [Python-ideas] HTML Wrapper

2019-03-14 Thread Steven D'Aprano
Hi Vlad, and welcome! On Thu, Mar 14, 2019 at 10:00:03PM +0100, Vlad Tudorache wrote: > Hello, > > I'd like to know if there is a basic HTML wrapper for Python, like > TextWrapper but allowing the generation of HTML from strings or iterables > of strings. This list is for proposing and

[Python-ideas] HTML Wrapper

2019-03-14 Thread Vlad Tudorache
Hello, I'd like to know if there is a basic HTML wrapper for Python, like TextWrapper but allowing the generation of HTML from strings or iterables of strings. Like: make_select = HTMLWrapper(tag='select class="eggs"', indent=' ') make_option = HTMLWrapper(tag='option') Applying this like: s