If you want to directly include another file, just use the Cheetah #include directive. There are many examples of this in the Seasons skin.
On Sat, Oct 19, 2019 at 1:53 PM p q <[email protected]> wrote: > Hi, > > Short version - > I want to insert a HTML file into index.html, probably when it is created > by Cheetah. The HTML is created by python code so I can't just insert it. I > took a quick look at the Cheetah documentation and it wasn't immediately > obvious how to do this. > > Longer version - > I want to have an interactive map showing recent earthquakes on my site. I > wrote a little bit of python to query the USGS site to get the data and I'm > using leaflet.js for the maps. I have this part all working if I manually > insert the HTML into my index.html file. I suppose I could write a bit more > javascript to read my HTML file and put it in the index.html, but it seems > like a natural for Cheetah. Is there an easy way to do this? > > -- > You received this message because you are subscribed to the Google Groups > "weewx-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/e84120d5-46da-4d2a-a2cd-e89e37cb1256%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/e84120d5-46da-4d2a-a2cd-e89e37cb1256%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zECzd_nNJThR4W2j0ctytXJUQsr%2BeQx0mChmq%3DbAkvGA%2Bw%40mail.gmail.com.
