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

Lack of template processor and missing methods #55

Closed
orkungedik opened this issue Jan 5, 2024 · 2 comments
Closed

Lack of template processor and missing methods #55

orkungedik opened this issue Jan 5, 2024 · 2 comments

Comments

@orkungedik
Copy link

orkungedik commented Jan 5, 2024

Hi,

I am trying to convert my project from ESPAsyncWebServer to PsychicHttp for SSL support reason. By using ESPAsyncWebServer I can send response to the client by request->send_P(200, "text/html", page_html, page_html_processor); . So I can provide page_html_processor parameter in send_P method in order to replace variables defined in static html. But I can't find a matching method with send_P in PsychicHttp library. I found reply method but it hasn't a callback function parameter like AwsTemplateProcessor callback = nullptr.

Is there any way to use html template processor paramater in PsychicHttp?

Thank you,

Orkun Gedik

@orkungedik orkungedik changed the title request->send_P method Lack of template processor and missing methods Jan 5, 2024
@Chris--A
Copy link
Contributor

Chris--A commented Jan 6, 2024

I'm working on a solution for templating at the moment. Might have a candidate tonight.

@hoeken
Copy link
Owner

hoeken commented Aug 10, 2024

Template processor from @Chris--A is merged and live in v1.2

@hoeken hoeken closed this as completed Aug 10, 2024
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

3 participants