Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uTemplate {% include %} causing 500 error #262

Open
zyltr opened this issue Nov 5, 2024 · 1 comment
Open

uTemplate {% include %} causing 500 error #262

zyltr opened this issue Nov 5, 2024 · 1 comment

Comments

@zyltr
Copy link

zyltr commented Nov 5, 2024

Describe the bug
When using {% include "header.html %} inside a template and header.html is empty, it causes the server to return a 500 error.

index.html

...
<body>
  <header>
      <!-- An Empty Template Causes uTemplate to Fail -->
      {% include "header.html" %}
  </header>
  <main>
      <h1>Hello world!</h1>
  </main>
</body>
...

header.html

To Reproduce
Using a Pi Pico W
Steps to reproduce the behavior:

  1. Copy file contents to microcontroller
  2. run main
  3. Connect to Microcontroller Access Point (SSID "Pico W", Key "raspberry")
  4. Load index.html by going to 192.168.4.1

Additional context

500

Source

uDot.zip

@zyltr zyltr closed this as completed Nov 5, 2024
@zyltr zyltr reopened this Nov 5, 2024
@miguelgrinberg
Copy link
Owner

uTemplate is a 3rd party project that is unrelated to Microdot. If you have found an issue with it you can submit a bug report on the project's repository at https://github.com/pfalcon/utemplate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants