{
    "mode": "man",
    "parameter": "tilt",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/tilt/1/json",
    "generated": "2026-06-15T14:37:56Z",
    "synopsis": "tilt <options> <file>",
    "sections": {
        "NAME": {
            "content": "tilt - Generic interface to multiple Ruby template engines\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "tilt <options> <file>\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Process  template  <file>  and  write output to stdout. With no <file> or when <file> is '-',\nread template from stdin and use the --type option to determine the template's type.\n\nOptions\n",
            "subsections": [
                {
                    "name": "-l --list",
                    "content": "List template engines + file patterns and exit\n",
                    "flag": "-l",
                    "long": "--list"
                },
                {
                    "name": "-t --type=",
                    "content": "",
                    "flag": "-t"
                },
                {
                    "name": "-y --layout=",
                    "content": "Use <file> as a layout template\n",
                    "flag": "-y"
                },
                {
                    "name": "-D",
                    "content": "Define variable <name> as <value>\n",
                    "flag": "-D"
                },
                {
                    "name": "-o --vars=",
                    "content": "Evaluate <ruby> to Hash and use for variables\n",
                    "flag": "-o"
                },
                {
                    "name": "-h --help",
                    "content": "Show this help message\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "Convert markdown to HTML:",
                    "content": "$ tilt foo.markdown > foo.html\n"
                },
                {
                    "name": "Process ERB template:",
                    "content": "$ echo \"Answer: <%= 2 + 2 %>\" | tilt -t erb Answer: 4\n"
                },
                {
                    "name": "Define variables:",
                    "content": "$ echo \"Answer: <%= 2 + n %>\" | tilt --locals=\"{:n=>40, :x=>0}\" Answer: 42 $ echo \"An‐\nswer: <%= 2 + n %>\" | tilt -Dn=40 -Dx=0 Answer: 42\n\n\n\ntilt 1.3.2                                    July 2011                                      TILT(1)"
                }
            ]
        }
    },
    "summary": "tilt - Generic interface to multiple Ruby template engines",
    "flags": [
        {
            "flag": "-l",
            "long": "--list",
            "arg": null,
            "description": "List template engines + file patterns and exit"
        },
        {
            "flag": "-t",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-y",
            "long": null,
            "arg": null,
            "description": "Use <file> as a layout template"
        },
        {
            "flag": "-D",
            "long": null,
            "arg": null,
            "description": "Define variable <name> as <value>"
        },
        {
            "flag": "-o",
            "long": null,
            "arg": null,
            "description": "Evaluate <ruby> to Hash and use for variables"
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Show this help message"
        }
    ],
    "examples": [],
    "see_also": []
}