Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

flask jinja2 insert content of css file inline

Tags:

flask

jinja2

I have a flask project in which one of the pages needs to be self contained. I have a separate file whose content I need to insert into the html page's head.

What's the easiest way to do it?

like image 737
applechief Avatar asked Oct 31 '12 16:10

applechief


1 Answers

Simply use the include statement to include the contents:

<style type="text/css">
{% include "your.css" %}
</style>
like image 145
Sean Vieira Avatar answered Sep 25 '22 01:09

Sean Vieira