Reusing code

Today has been quite a day learning loads of new Wappler features and techniques.

I have a chunk of HTML - only about 6 lines - which will be used a number of times in the page. It references a couple of dynamic values but apart from that, it’s identical.

Duplicating it feels like a bad solution so I want to create it and then call it each time.

In PHP I would create a function. What’s the best way in Wappler?

Community Page
Last updated: