Skip to content

Advanced Functional Tags#


The Miva Template Language includes a set of advanced functional tags that provide powerful tools for dynamic content generation, logic execution, and output management. These tags allow developers to take their templates to the next level by enabling complex workflows and interactions.

In this section, you’ll explore how to use these functional tags to create efficient, reusable, and scalable templates that address complex e-commerce requirements.


What You’ll Learn#

  1. Using Functional Tags: Learn the purpose and syntax of key advanced tags like <mvt:call>, <mvt:eval>, and <mvt:do>.
  2. Capturing and Managing Output: Understand how to capture template output for further processing or dynamic use.
  3. Best Practices: Tips for effectively integrating functional tags into your templates.

Topics Covered#

mvt:call#

Use the <mvt:call> tag to invoke functions or execute specific logic blocks. This tag is essential for reusing code and integrating custom logic.

Learn More: mvt:call →


mvt:eval#

Dynamically evaluate expressions or execute inline logic with <mvt:eval>. This tag is ideal for situations requiring runtime flexibility.

Learn More: mvt:eval →


mvt:do#

Automate repetitive tasks or execute iterative processes using <mvt:do>. This tag simplifies scenarios where actions need to be performed multiple times.

Learn More: mvt:do →


mvt:capture#

Use <mvt:capture> to store template output in variables for dynamic processing or reuse elsewhere in your templates.

Learn More: mvt:capture →


Why This Section is Important#

Advanced functional tags give you greater control and flexibility over your templates, enabling you to:

  • Reuse logic and reduce code duplication.
  • Execute dynamic behaviors based on runtime data.
  • Capture and manipulate output to create highly interactive and efficient templates.

By mastering these tags, you’ll unlock new possibilities for extending the functionality and performance of your Miva templates.


Next Steps#

Ready to explore these advanced tools? Start with mvt:call to learn about invoking reusable logic, or dive into mvt:capture to discover how to manage dynamic output effectively.

Let’s harness the power of advanced functional tags to supercharge your templates!