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

How to integrate a second webpage #40

Open
dagnolof opened this issue May 21, 2024 · 1 comment
Open

How to integrate a second webpage #40

dagnolof opened this issue May 21, 2024 · 1 comment

Comments

@dagnolof
Copy link

The webserver works fine if i have only the index,html file,
What if this index,html fle calls another html file, params,html,
I have some problems to have this params,html processed by a processor,

I added following line in fucntion initWebServer()
server.serveStatic("/params.html", LittleFS, "/params.html").setTemplateProcessor(params_html_processor);

However the function (params_html_processor); is not called when i open the params,html page,

I am stuck on this for quite w while, can you give me some tips on how to solve this please

Thanks you for your tutorial

Best regards,
Fabrizio

@dagnolof
Copy link
Author

In my browser i enter the IP adres of the ESP32
index,html is opened and processed, OK

But if i enter ipadres/index,html
the index,html file is NOT processed.

This problem and opening of a second params,html are related in my opinion

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

1 participant