Hello Sir, On Thursday, March 15, 2018 at 11:29:46 PM UTC+5:30, Aymeric Augustin wrote: > > Hello, > > 2018-03-15 14:24 GMT+01:00 Manasvi Saxena <[email protected] <javascript:> > >: > >> Think of this library as a bridge between Python and HTML, you don't need >> to know the syntax of HTML, just need to know which function of the library >> creates what output. After you have created the content of your page just >> pass it to a function in a list and you have your HTML page. >> Have a look at the prototype and let me know what you think of it. >> > > Thanks for the example. > > To be honest the sample.py file doesn't strike me as a convenient way to > write HTML. > > I think someone who's confortable writing Python code should be able to > learn the HTML syntax very quickly. > > <tag attr1="value1" attr2="value2">content</tag> isn't more complicated > than pyhtml.tag("content", attr1="value1", attr2="value2"), is it? > > This idea is not a good fit for Django. Perhaps it can be a learning > experiment for you, though? > > Best regards, > > -- > Aymeric. >
Another potential application of the 'pyhtml' library for the developers aware of HTML concepts is that it can be used to implement logic in a webpage. Right now Django templating language and jinja are very well solving this purpose but this will be an extension of them. If a developer needs to add data that is very big but can be generated using programming and building logic, then in that aspect, this library as of now only require the user to pass a list inside the generate_html function. That list can be generated using any logic a developer wants in python. Instead of putting Jinja or Django templating language directly in the web page you can generate a pure HTML page which can be easily understood by any front-end developer if he wants to debug it. This reduces the effort of both front end and back end developer. And as I said earlier this was just a prototype. The real library will cover every HTML and CSS tag in the most optimized way possible. And under the guidance of experienced mentors, Django community has, I believe I'll be able to build something that will add another feather to Django's hat. Please let me know what do you think of this new perspective. Regards, Manasvi Saxena -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/af193f5c-c6d3-4245-b7d2-45e676d9ec03%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
