You can create web templates as components in Liquid to reuse code in multiple places. Although you can't create custom functions in Liquid, web templates can be used in a similar way. For example, you can define a template for tag replacement and use it in your Liquid code. You can also use the "capture" Liquid tag to assign the results to variables. The template can be included in a loop for each step, allowing for text replacement. The output can then be captured in a variable and added to the HTML output. While it takes some effort to define, this approach allows for reusable code in Liquid.
Login now to access my digest by 365.Training