Discussion:
[bottlepy] bottle /jquery /bootstrap und lokale scripts
gNeandr
2014-12-19 11:10:50 UTC
Permalink
On the German python-forum
<http://www.python-forum.de/viewtopic.php?f=7&t=35297> I have posted a
question around this question:

On a 'tpl' HTML page I used to load external scripts which is working well,
like this:
<script src=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"
</script>
To try to load them from local server fails ... think I misunderstand
something totally wrong, sorry.

On the forum a recommendation is to use 'bottle.staticfile'. But that's
loading on python side. Shouldn't I do it within the HTML code?

What should a script line look like?
Assume my 'tpl' file is on '/home/pi/project' and 'bootstrap.min.js' would
be in '/home/pi/project/jQ'.
(Note: this is a project on a Raspberry)
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.

---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...