Let's simplify coding with html

101 views
Skip to first unread message

manasdeep borole

unread,
Mar 21, 2021, 12:57:37 PM3/21/21
to Django developers (Contributions to Django itself)
Hi Everyone,
I know coding could get tough sometimes(experienced it).
But thanks to amazing people like you and per built framework like Django.
At least not everyone has to know everything now.
The Open Source support is amazing as well.
Thanks a lot.

Last time while working with html I was annoyed by the syntax. 
You have to deal with so many end tags they tend to confuse you.
eg 

NOW...

<div class="upper">
<div class='middle'>
<div class='lower'>
this is most inner class
</div>
this is quite outer class
</div>
this is most outer class
</div>

With Improvement

div class='upper':
    div class='middle':
        div class='lower':
            "this is most inner class
         "this is quite outer class"
    "this most outer class"

advantages:
  1. Python like indentation
  2. simple to read (developer/debugger friendly)
  3. 50% lowers the chances of mistake while coding (most errors happen because coders forget end tags with html)
  4. no end tags required
  5. supports python based logic building like use of for, if....
  6. programers are free to let computer do the repetitive tasks like logic based id for multiple div with similar functionality 
  7. plans to support direct support for bootstrap( working on it)

disadvantages:
  1. needs time and effort to build such a system
  2. expert support and guidance may be needed
  3. adoption time and some effort on part of programmers 
If someone could mentor me I am willing to build on this Idea
Actually I have built a basic version.
I understand you would have a lot of requests for GSOC application.
Can someone guide me if this Idea could be made into a GSOC proposal.
If you have any suggestion or ideas to make this project better you are most welcome.
Thank you 
For your 'time' and 'consideration'



Aymeric Augustin

unread,
Mar 21, 2021, 4:21:19 PM3/21/21
to django-d...@googlegroups.com
Hello,

There are several projects providing alternate syntax for generating HTML, along the lines of your suggestion, and other projects for integrating these with Django. Here's one such project: https://github.com/nyaruka/django-hamlpy. I believe we're happy with this functionality being provided by third-party projects. As a consequence this doesn't seem likely to be accepted for GSoC.

-- 
Aymeric.



--
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 django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/024e7422-8242-497c-9a32-f5b67b4fcae3n%40googlegroups.com.

manasdeep borole

unread,
Mar 21, 2021, 9:50:58 PM3/21/21
to django-d...@googlegroups.com
Thanks 
But it seems there is no support for bootstrap (at least not directly)
Or may be I am missing something....
Please feel free to point out...

Curtis Maloney

unread,
Mar 24, 2021, 10:27:52 PM3/24/21
to 'Mike Hansen' via Django developers (Contributions to Django itself)
I think it's unclear to me what you mean by "support for bootstrap".

Bootstrap is, after all, a CSS library [with some JS tools for complex widgets].

It looks like the syntax example you gave supports specifying classes [and likely other attributes] on elements, so using Bootstrap with that is a matter of including the CSS file, and adding the classes.

--
Curtis
Reply all
Reply to author
Forward
0 new messages