I am curious to know if the community has any suggestions of clever ways to work out an implementation to embed user data into the Prismic content that gets rendered to the page. For example, your marketing team wants to build a page with content that can be tailored to each user - let's say it is a page which displays usage statistics for each user. In Prismic, the marketing team uses a Rich Text field with something like the following:
"Hello, ${userName}
! Welcome to our new splash page!"
Is there a clever way to render the Prismic content in such a way that it is adaptive to user data stored in the application's state?
I have thought about parsing the string that gets received in the JSON object from Prismic and then mutating the string but I am curious to know if there are people who have tried something else?
Thanks!