简体   繁体   中英

Format html code in flask?

Is it possible to format html code before I render it with flask? In my current project, I use many jinja templates and everything is working, but the source code in the browser, doesn't look so good. It's not so important but it would look much nicer with a prettified html code. Thanks

Intellij Idea understand .html files with jinja2 templates. Just use CTRL + ALT + L for make formatting of whole file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM