How to send int value to html asyncwebserver nodemcu

Hi good day to all and please welcome me to this forum

I just wanna ask on How to to send int value to html asyncwebserver

Here’s my sample code

#include <ESPAsyncTCP.h>
#include <ESPAsyncWebServer.h>

int btnCount=0;

const char index_html[] PROGMEM = R"rawliteral(
<!DOCTYPE HTML><html>
<body>

 
 
</body></html>)rawliteral";



void ICACHE_RAM_ATTR btnPush()
{
   btnCount ++;

}

void setup () {

attachInterrupt(D6, btnPush, RISING);
pinMode(D6, INPUT);


server.on("/", HTTP_GET, [](AsyncWebServerRequest *request){
    request->send_P(200, "text/html", index_html, processor);
  });

  server.begin();

}

void loop {



}

All i want to do is when i press the pushbutton “btnCount” will appear on html webserver

Hope you help me w/ this thank you MORE POWER

Can anyone help me?

Up up up please help me

Your webserver is serving up a web page. It currently is sending a static page 'index_html' The library supports templates link

Modify index_html to include a template placeholder.

Modify your processor() function to substitute that placeholder with the value of the button count

Read this tutorial