You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a requests from different doc project for a dynamic page:
Take a URL like:
docs.scylladb.com/?node=x&user=y
And use it in the doc like:
"As a user Y you take the address of X and ..."
Implementation
The notation to write a substitution in the page's source code could look like:
"as a user ${ Y:developer} you take the address ..."
So, if the user does not provide a query param, the page will render a default value (developer) instead of ${Y}.
We need to make sure that no one can inject custom JS snippets or HTML tags like links to prevent others from injecting redirections or other malicious code.
The text was updated successfully, but these errors were encountered:
"as a user ${ Y:developer} you take the address ..."
Likely, I would want to use this substitution for the entire page (maybe not always)
We need to make sure that no one can inject custom JS snippets or HTML tags like links to prevent others injecting redirections or other malicious code.
Requirement
Implementation
The notation to write a substitution in the page's source code could look like:
"as a user ${ Y:developer} you take the address ..."
So, if the user does not provide a query param, the page will render a default value (developer) instead of ${Y}.
We need to make sure that no one can inject custom JS snippets or HTML tags like links to prevent others from injecting redirections or other malicious code.
The text was updated successfully, but these errors were encountered: