"Partial" Parameters

I want to make dynamic items, like a table, which I can configure across pages, but there’s no way to include variables across partials that can also be seen by Wappler (at least not without fancy coding I’m sure). For example, the parent page could include my control/partial file (.ejs in my case: such as button.ejs), and the control/partial would expose some required input/argument properties to satisfy requirements for the control/partial. This would require supporting a way to generated dynamic IDs for the controls. I guess this would be a “template partial”? For example, not all buttons on my page should have id='button'. A “Template Partial” should contain an ID for the root of the partial, which I can specify in the template. For example:

Parent page: 
    App
       Dynamic Modal: addSomething
         Template Partial: Button (id = save1, caption = Save)
         Template Partial: Button (id = cancel1, caption = Cancel)
       Dynamic Modal: addSomethingElse
         Template Partial: Button (id = save2, caption = Save)
         Template Partial: Button (id = cancel2, caption = Cancel)

Button.ejs

<button id="btn{{id}}">{{Captaion}}</button>
Community Page
Last updated: