TemplateData.set

Set a variable that will be replaced inside the options.

eg. for this data set:

{ "key": "value :id" "level1": { "key": "value :id" } }

after set(":id", "/user/:id", "/user/3")

the options will be: { "key": "value 3" "level1": { "key": "value 3" } }

struct TemplateData
void
set
(
string variable
,
string route
,
string path
)

Meta