Skip to main content

html Operation

Render HTML with templates and data.

Basic Usage

operations:
  - name: render
    operation: html
    config:
      template: dashboard
      data:
        user: ${fetch-user.output}
        stats: ${fetch-stats.output}

Configuration

config:
  template: string    # Template name
  data: object       # Template data
  html: string       # Or raw HTML

Examples

With Template

operations:
  - name: render
    operation: html
    config:
      template: report
      data:
        title: Monthly Report
        revenue: ${calculate.output.revenue}
        expenses: ${calculate.output.expenses}

Raw HTML

operations:
  - name: render
    operation: html
    config:
      html: |
        <html>
          <body>
            <h1>Hello ${input.name}</h1>
          </body>
        </html>

Next Steps