J'ai retrouvé un exemple plus simple, sans saucissonnage :
const char webRoot[] = R"(<!DOCTYPE HTML>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>TEST DE MISE EN PAGE</title>
<style type="text/css">
body {background-color: #00979c}
</style></head>
<body>
Température = %TEMP%°C<br>
<button onclick="location.href='/tup'" type='button'> + </button>
<button onclick="location.href='/tdown'" type='button'> - </button>
<br><br><br>
Pression = %PRESSURE%hPa<br>
<button onclick="location.href='/pup'" type='button'> + </button>
<button onclick="location.href='/pdown'" type='button'> - </button>
</body>
</html>
)";
int temp = 22;
int pressure = 1013;
void handleRoot(void)
{
String value(temp);
String message = webRoot;
message.replace("%TEMP%", value);
value = pressure;
message.replace("%PRESSURE%", value);
server.send(200, "text/html", message);
}