microdot utemplate difficulty #247
Closed
CarlSchneider
started this conversation in
General
Replies: 1 comment 2 replies
-
Microdot has a core file (microdot.py) and a few extensions. It seems you haven't done a correct installation. On your device, create a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there.
I'm having difficulty getting microdot utemplate working on a Pico W running Micropython and hoping somebody can please point me in the right direction.
In the examples for utilising utemplate the following is reflected
So then I tried
and
utemplate.initialize('/')
errors with
My directory on the Pico W looks like this
the balance are all in the root directory
boot.py, main.py, microdot.py, template.py and sett.html
Using microdot I can
send_file(request.path)
fine but I just can't figure out how to render a html file using microdot with utemplate.I had a look inside utemplate.py and I can see a class Template: but I'm stumped.
It must be something simple but just can't see it.
Hopefully its something really simple.
Any help would be appreciated.
Many thanks
Carl
Beta Was this translation helpful? Give feedback.
All reactions