Re: [flask] Third-Party Themes
- Brad Porter
- 2014-06-11 @ 17:37
So you have a couple of options for using bootstrap. One would just be
folders and link to them in the HTML template.
Your file structure would look like this:
Then in the template you would have some code like:
<link href="/static/css/bootstrap.min.css" rel="stylesheet" media="screen">
Then you would of course have to make the proper HTML modifications to
have the template utilize the bootstrap theme you are wanting.
I found the following tutorial useful for this type of implementation:
The alternative is to use the Flask-Bootstrap addon:
On 6/11/14, 8:23 AM, Greg Lindstrom wrote:
> I have written a nifty utility to use at work and would like to download
> and use a third-party theme but, for the life of me, can not figure out
> how to do it. I have downloaded two files, bootstrap.css and
> bootstrap-min.css and am told to replace "the existing files". I was
> hoping that I could define a path so I wouldn't have to replace existing
> library files, but am stumped.
> Can someone help me with this or point me to documentation? I've been
> looking for the past couple of days and haven't found anything simple
> enough for this old dog to understand.
> Greg Lindstrom
> Little Rock, Arkansas
Threat Intelligence Analyst