Thank you Alan. I needed to generate a report using a python script (will become part of a web service) and send it as an email. For now I put the required HTML tags wherever they were needed.
Thanks Sri Kavi. I'll check out your suggestion. On Wed, Mar 22, 2017 at 12:29 AM, Alan Gauld via Tutor <tutor@python.org> wrote: > On 20/03/17 22:09, ਪੰਜਾਬ ਪੰਜਾਬੀ wrote: > > > Looking for recommendations on Python module to use to generate HTML > > pages/tables, other HTML content. Kindly help. > > While thee are some modules that help with this most Python > programs I've seen just generate the HTML directly as strings. > There is no direct equivalent of, say, Perl's CGI module. > > However, if you are using a web framework, it will > generally provide a templating mechanism which will > separate out the HTML code (the view) from your > Python code (the model and controller). > > So if you give is more information about what the > HTML is being used for, we might be able to provide > more help. Is it part of a web application or just > a data file that you make available to some third > party? > > -- > Alan G > Author of the Learn to Program web site > http://www.alan-g.me.uk/ > http://www.amazon.com/author/alan_gauld > Follow my photo-blog on Flickr at: > http://www.flickr.com/photos/alangauldphotos > > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor > _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor