Re:Show HN: A Python native engine for web development
by orf on Sunday July 11, 2021 @07:26AM
(#27799995)
When you do “render_template()” Flask uses jinja2 - it will read it, pass it to jinja2 and render the response. This is what I meant by avoiding jinja2 entirely.
Good luck!
Re:Show HN: A Python native engine for web development
by redfox2 on Monday July 12, 2021 @12:10AM
(#27806963)
But the issue when I avoid render_template() is this:
I can't add the CSS file along with the HTML one, unless I create a <style> tag at the end of the file that has all of the CSS content. Can you comment on that?
I didn't think of this until you mentioned this, so might do that. But I don't get the 'avoid Jinja2 entirely' part. Jinja2 is avoided with the current syntax already (which is definitely changing).
About BeautifulSoup, the autoPrettify() function is actually from bs4, it is a dependency.
Yeah I know, camelCase IS unpythonic
Thanks again