Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
gulp template with python?
#10
You don't need to use server that gulp create.
After you have run gulp it's also generated HTML/CSS/JS/img files,this file you need to move to Flask static folder and link them up.

A do show how i link up in tutorial with template that i use there.
It can be different for your template,but it should give a hint on how to do it.
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='vendor/bootstrap/css/bootstrap.min.css') }}" />
# Original link that i have comment out and done link to flask static folder 
<!--<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">-->
 
<script src="{{ url_for('static', filename='vendor/jquery/jquery.min.js') }}"></script>
<!--<script src="vendor/jquery/jquery.min.js"></script>-->
 
# images
<img src="static/img/portfolio/cake.png" class="img-responsive" alt="">
Reply


Messages In This Thread
gulp template with python? - by IMuriel - Jan-28-2019, 06:23 PM
RE: gulp template with python? - by snippsat - Jan-29-2019, 12:47 PM
RE: gulp template with python? - by IMuriel - Jan-29-2019, 03:41 PM
RE: gulp template with python? - by snippsat - Jan-29-2019, 04:07 PM
RE: gulp template with python? - by IMuriel - Jan-29-2019, 05:08 PM
RE: gulp template with python? - by snippsat - Jan-29-2019, 05:48 PM
RE: gulp template with python? - by IMuriel - Jan-29-2019, 06:01 PM
RE: gulp template with python? - by snippsat - Jan-29-2019, 06:28 PM
RE: gulp template with python? - by IMuriel - Jan-29-2019, 06:36 PM
RE: gulp template with python? - by snippsat - Jan-29-2019, 06:58 PM
RE: gulp template with python? - by IMuriel - Jan-29-2019, 07:07 PM
RE: gulp template with python? - by snippsat - Jan-29-2019, 07:27 PM
RE: gulp template with python? - by IMuriel - Jan-29-2019, 08:30 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020