I am trying to create a component and embed dynamic html into the component and replace placeholders with dynamic values.
I am able to create the component and embed it to the component and my html is also getting rendered.
I need to have some placeholders like {{text}} which needs to come dynamically from state variables or props but its not working.
below is the same dynamic html I am trying to embed
Hello, {state.name}!
and I have created a “name” state variable and set its value to “sample text”
but its not working and I am seeing the placeholders in the preview section
the main issue is that I just don’t need to add simple html which I added as a reference its like a POC I was doing for a bigger task.
the main problem is when I am trying to embed bigger html I can not edit it and add html elements in between my html as my complete code is taken as one element.
one more thing I want to highlight is I have predesigned html pages which I need to import in plasmic which has placeholders in it and I want to map those placeholders with either prop values or state variables.