# \[PYTHON\] Convert your HTML Files into a (html) Dash app!

**URL:** <https://community.plotly.com/t/python-convert-your-html-files-into-a-html-dash-app/8998>\
**Category:** Dash Python\
**Created:** [March 15, 2018, 11:18pm UTC](https://community.plotly.com/t/python-convert-your-html-files-into-a-html-dash-app/8998 "2018-03-15T23:18:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hyyking](https://avatars.discourse-cdn.com/v4/letter/h/ccd318/32.png) [@hyyking](https://community.plotly.com/u/hyyking)\
**Post date:** [March 15, 2018, 11:18pm UTC](https://community.plotly.com/t/python-convert-your-html-files-into-a-html-dash-app/8998/1 "2018-03-15T23:18:34Z")

</div>

Since I’ve discovered Dash not a long time ago I always thought it was frustrating to write dash apps in python. Almost everybody knows how to write HTML at this stage, and it is often faster to write it than having to think about the layout of the dash app. This is why, using an HTML parser, I wrote a small script that converts HTML layouts into dash layouts (with the idents). This script isn’t flawless (doesn’t support HTML styling yet, doesn’t allow you to write dcc in it yet) but I think it’s worth the share!

> <https://github.com/hyyking/htmltodash/blob/master/htmltodash.py>

---

<div class="post-metadata">

**Author:** ![\_jf](https://avatars.discourse-cdn.com/v4/letter/_/d9b06d/32.png) [@\_jf](https://community.plotly.com/u/_jf)\
**Post date:** [March 16, 2018, 1:04pm UTC](https://community.plotly.com/t/python-convert-your-html-files-into-a-html-dash-app/8998/2 "2018-03-16T13:04:03Z")

</div>

Terrific idea, shared the same itch 🍹  
I guess that approach could also be extended, so parsing an `html` layout and extending with `dash` rather than converting `html` -\> a `dash` app. This would be great for larger project such that the work of developing the layout and the logic can be split up more easily.

---

<div class="post-metadata">

**Author:** ![hyyking](https://avatars.discourse-cdn.com/v4/letter/h/ccd318/32.png) [@hyyking](https://community.plotly.com/u/hyyking)\
**Post date:** [March 16, 2018, 4:00pm UTC](https://community.plotly.com/t/python-convert-your-html-files-into-a-html-dash-app/8998/3 "2018-03-16T16:00:58Z")

</div>

Yup! Curently thinking about creating a « Lib » but I don’t know where it would get me in terms of amout of work, but I will be updating my progress for sure !
