{
  "slug": "render-jinja2",
  "name": "gizza-ai/render-jinja2",
  "version": "0.1.0",
  "title": "Jinja2 Template Renderer — gizza.ai",
  "description": "Render a Jinja2 template against JSON or YAML data in your browser — variables, loops, conditionals and filters. Free, private, no upload.",
  "tags": [
    "jinja2 renderer",
    "jinja template online",
    "jinja2 playground",
    "render jinja template",
    "template engine",
    "json to text",
    "yaml to text"
  ],
  "category": "developer",
  "urls": {
    "page": "https://gizza.ai/tools/render-jinja2/",
    "markdown": "https://gizza.ai/tools/render-jinja2/index.md",
    "descriptor": "https://gizza.ai/tools/render-jinja2/tool.json",
    "deep_link_example": "https://gizza.ai/tools/render-jinja2/?template=Hello%20%7B%7B%20name%20%7D%7D%21%0A%7B%25%20for%20i%20in%20items%20%25%7D-%20%7B%7B%20i%20%7D%7D%0A%7B%25%20endfor%20%25%7D&data=%7B%22name%22%3A%22Ada%22%2C%22items%22%3A%5B%22a%22%2C%22b%22%2C%22c%22%5D%7D&data_format=auto&strict=true"
  },
  "cli": "gizza tool render-jinja2 \"Hello {{ name }}!\n{% for i in items %}- {{ i }}\n{% endfor %}\"",
  "tool": {
    "description": "Render a Jinja2 (Jinja) template against supplied JSON or YAML data and return the output text. Supports {{ variable }} substitution, nested paths ({{ user.email }}), {% for %} loops, {% if %}/{% elif %}/{% else %} conditionals, and filters ({{ name | upper }}, {{ list | join(', ') }}). Set data_format to 'json', 'yaml', or 'auto' (default), and strict to error on a missing variable instead of rendering it empty. Useful for generating emails, config files, code, or any text from a template + data. Runs locally.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "data": {
          "description": "JSON or YAML supplying the template variables, e.g. {\"name\":\"Ada\"}. Defaults to an empty object.",
          "type": "string"
        },
        "data_format": {
          "default": "auto",
          "description": "Format of the data: 'auto' detects JSON or YAML, or force 'json'/'yaml'.",
          "enum": [
            "auto",
            "json",
            "yaml"
          ],
          "type": "string"
        },
        "strict": {
          "default": false,
          "description": "When true, referencing a missing variable is an error; when false (default) it renders as empty.",
          "type": "boolean"
        },
        "template": {
          "description": "The Jinja2 template, e.g. \"Hello {{ name }}!\" or \"{% for i in items %}- {{ i }}\\n{% endfor %}\".",
          "type": "string"
        }
      },
      "required": [
        "template"
      ],
      "type": "object"
    }
  }
}