I used WS2812FX library esp8266_webinterface example sketch.
i added a line server.on("/settings", srv_handle_settings_html); and defined a function void srv_handle_settings_html(){ server.send(200, "text/plain", "OK"); }
it works perfectly fine.
the problem is i cant't figure out how can make html dynamic.
it's always sending static html.
what i need is like this:
some html
some code that returns some html (for loop example)
some more html
I belive you are looking for an interactive webserver, which responds based on the input you give to the page.
If that is the case, you can check my tutorial on ESP32 webserver where I have controlled an LED from a web server the buttons on the webserver are interactive.
The procedure will be mostly the same for ESP8266 as well
You can also check out AJAX web server after this if you want your page to re-load automatically this was your sensor values or any dynamic values will automatically be visible without you having to refesh the page everytime