Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By mrburnette
#28557
brutzler wrote:
martinayotte wrote:using the R===== macro,

Never heard about that :o
Even google is not my friend in that case.... only found something about R-programming-language.
But your short example is getting compiled.

Now a few days in vacancy. After I will try it out



I believe the derivative post is:
http://www.esp8266.com/viewtopic.php?f=29&t=2417&p=14130

At least, that is when I first saw this technique mentioned.

Ray
User avatar
By brutzler
#29105 Like discussed in my other post, I appreciate the use of the Raw string literals (R"token(text)token")
For static websites this is imho the best option I know.

But what if I want to make a dynamic website?
- situation depending colouring of elements
- displaying actual values.

The HTML-code is a "const char". I do not know any possibility to change it on runtime. Even because there could be a need of varying the length.
And dividing the HTML-code in static parts, and between this parts sending e.g. an actual value... -> makes n+1 parts for n variables. Not much fun...