{
    "content": [
        {
            "type": "text",
            "text": "# erubis(1) (man)\n\n**Summary:** erubis - eRuby style template engine for multiple languages\n\n**Synopsis:** erubis [..options..] [file ...]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -h | --help | — | help |\n| -v | — | — |  |\n| -x | — | — |  |\n| -X | — | — |  |\n| -N | — | — |  |\n| -U | — | — |  |\n| -C | — | — |  |\n| -b | — | — |  |\n| -z | — | — |  |\n| -e | — | — |  |\n| -p | — | — | embedded pattern (default '<% %>') |\n| -l | — | — | convert but no execute (ruby/php/c/java/scheme/perl/js) |\n| -E | — | — | enhancer names (Escape, PercentLine, BiPattern, ...) |\n| -I | — | — | library include path |\n| -K | — | — | kanji code (euc/sjis/utf8) (default none) |\n| -c | — | — | context data string (yaml inline style or ruby code) |\n| -f | — | — | context data file ('*.yaml', '*.yml', or '*.rb') |\n| -T | — | — |  |\n| -S | — | — |  |\n| -B | — | — | --pi=name parse '<?name ... ?>' instead of '<% ... %>' |\n\n## Examples\n\n- `Run 'erubis -l php example.ephp' to convert the embedded document to php code.`\n- `<?xml version=\"1.0\"?>`\n- `<html>`\n- `<body>`\n- `<p>Hello <%= $user %>!</p>`\n- `<table>`\n- `<tbody>`\n- `<% $i = 0; %>`\n- `<% foreach ($list as $item) { %>`\n- `<%   $i++; %>`\n- `<tr bgcolor=\"<%= $i % 2 == 0 ? '#FFCCCC' : '#CCCCFF' %>\">`\n- `<td><%= $i %></td>`\n- `<td><%== $item %></td>`\n- `</tr>`\n- `<% } %>`\n- `</tbody>`\n- `</table>`\n- `</body>`\n- `</html>`\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (12 lines)\n- **OPTIONS** (1 lines) — 21 subsections\n  - -h --help (2 lines)\n  - -v (1 lines)\n  - -x (1 lines)\n  - -X (1 lines)\n  - -N (1 lines)\n  - -U (1 lines)\n  - -C (1 lines)\n  - -b (1 lines)\n  - -z (1 lines)\n  - -e (1 lines)\n  - -p (2 lines)\n  - -l (2 lines)\n  - -E (2 lines)\n  - -I (2 lines)\n  - -K (2 lines)\n  - -c (2 lines)\n  - -f (2 lines)\n  - -T (1 lines)\n  - -S (1 lines)\n  - -B (3 lines)\n  - supported properties: (61 lines)\n- **EXAMPLES** (2 lines) — 1 subsections\n  - example.ephp: (20 lines)\n- **SEE ALSO** (5 lines)\n\n## Full Content\n\n### NAME\n\nerubis - eRuby style template engine for multiple languages\n\n### SYNOPSIS\n\nerubis [..options..] [file ...]\n\n### DESCRIPTION\n\nEmbedded templating engine for multiple languages.  Erubis will take a template file as input\nand output code to convey that data in the language specified.   The  following  output  lan‐\nguages are supported:\n\n* Ruby\n* PHP\n* C\n* Java\n* Scheme\n* Perl\n* JavaScript\n\n### OPTIONS\n\n#### -h --help\n\nhelp\n\n#### -v\n\n#### -x\n\n#### -X\n\n#### -N\n\n#### -U\n\n#### -C\n\n#### -b\n\n#### -z\n\n#### -e\n\n#### -p\n\nembedded pattern (default '<% %>')\n\n#### -l\n\nconvert but no execute (ruby/php/c/java/scheme/perl/js)\n\n#### -E\n\nenhancer names (Escape, PercentLine, BiPattern, ...)\n\n#### -I\n\nlibrary include path\n\n#### -K\n\nkanji code (euc/sjis/utf8) (default none)\n\n#### -c\n\ncontext data string (yaml inline style or ruby code)\n\n#### -f\n\ncontext data file ('*.yaml', '*.yml', or '*.rb')\n\n#### -T\n\n#### -S\n\n#### -B\n\n--pi=name\nparse '<?name ... ?>' instead of '<% ... %>'\n\n#### supported properties:\n\n* (common)\n\n--escapefunc=nil\n: escape function name\n\n--pattern=\"<% %>\"\n: embed pattern\n\n--trim=true\n: trim spaces around <% ... %>\n\n--preamble=nil\n: preamble (no preamble when false)\n\n--postamble=nil\n: postamble (no postamble when false)\n\n--escape=nil\n: escape expression or not in default\n\n* (basic) * (pi)\n\n--pi=\"rb\"\n: PI (Processing Instrunctions) name\n\n--embchar=\"@\"\n: char for embedded expression pattern('@{...}@')\n\n* ruby * php * c\n\n--indent=\"\"\n: indent spaces (ex. '  ')\n\n--out=\"stdout\"\n: output file pointer name\n\n* java\n\n--indent=\"\"\n: indent spaces (ex. '  ')\n\n--buf=\"buf\"\n: output buffer name\n\n--bufclass=\"StringBuffer\" : output buffer class (ex. 'StringBuilder')\n\n* scheme\n\n--func=\"add\"\n: function name (ex. 'display')\n\n* perl\n\n--func=\"print\"\n: function name\n\n* javascript\n\n--docwrite=true\n: use 'document.write()' when true\n\n### EXAMPLES\n\nRun 'erubis -l php example.ephp' to convert the embedded document to php code.\n\n#### example.ephp:\n\n<?xml version=\"1.0\"?>\n<html>\n<body>\n<p>Hello <%= $user %>!</p>\n<table>\n<tbody>\n<% $i = 0; %>\n<% foreach ($list as $item) { %>\n<%   $i++; %>\n<tr bgcolor=\"<%= $i % 2 == 0 ? '#FFCCCC' : '#CCCCFF' %>\">\n<td><%= $i %></td>\n<td><%== $item %></td>\n</tr>\n<% } %>\n</tbody>\n</table>\n</body>\n</html>\n\n### SEE ALSO\n\nhttp://rubyforge.org/projects/erubis/\n\n\n\nerubis 2.6.2                                January 2009                                   ERUBIS(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "erubis",
        "section": "1",
        "mode": "man",
        "summary": "erubis - eRuby style template engine for multiple languages",
        "synopsis": "erubis [..options..] [file ...]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "help"
            },
            {
                "flag": "-v",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-x",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-X",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-N",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-U",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-C",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-b",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-z",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-e",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-p",
                "long": null,
                "arg": null,
                "description": "embedded pattern (default '<% %>')"
            },
            {
                "flag": "-l",
                "long": null,
                "arg": null,
                "description": "convert but no execute (ruby/php/c/java/scheme/perl/js)"
            },
            {
                "flag": "-E",
                "long": null,
                "arg": null,
                "description": "enhancer names (Escape, PercentLine, BiPattern, ...)"
            },
            {
                "flag": "-I",
                "long": null,
                "arg": null,
                "description": "library include path"
            },
            {
                "flag": "-K",
                "long": null,
                "arg": null,
                "description": "kanji code (euc/sjis/utf8) (default none)"
            },
            {
                "flag": "-c",
                "long": null,
                "arg": null,
                "description": "context data string (yaml inline style or ruby code)"
            },
            {
                "flag": "-f",
                "long": null,
                "arg": null,
                "description": "context data file ('*.yaml', '*.yml', or '*.rb')"
            },
            {
                "flag": "-T",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-S",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-B",
                "long": null,
                "arg": null,
                "description": "--pi=name parse '<?name ... ?>' instead of '<% ... %>'"
            }
        ],
        "examples": [
            "Run 'erubis -l php example.ephp' to convert the embedded document to php code.",
            "<?xml version=\"1.0\"?>",
            "<html>",
            "<body>",
            "<p>Hello <%= $user %>!</p>",
            "<table>",
            "<tbody>",
            "<% $i = 0; %>",
            "<% foreach ($list as $item) { %>",
            "<%   $i++; %>",
            "<tr bgcolor=\"<%= $i % 2 == 0 ? '#FFCCCC' : '#CCCCFF' %>\">",
            "<td><%= $i %></td>",
            "<td><%== $item %></td>",
            "</tr>",
            "<% } %>",
            "</tbody>",
            "</table>",
            "</body>",
            "</html>"
        ],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-h --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-v",
                        "lines": 1,
                        "flag": "-v"
                    },
                    {
                        "name": "-x",
                        "lines": 1,
                        "flag": "-x"
                    },
                    {
                        "name": "-X",
                        "lines": 1,
                        "flag": "-X"
                    },
                    {
                        "name": "-N",
                        "lines": 1,
                        "flag": "-N"
                    },
                    {
                        "name": "-U",
                        "lines": 1,
                        "flag": "-U"
                    },
                    {
                        "name": "-C",
                        "lines": 1,
                        "flag": "-C"
                    },
                    {
                        "name": "-b",
                        "lines": 1,
                        "flag": "-b"
                    },
                    {
                        "name": "-z",
                        "lines": 1,
                        "flag": "-z"
                    },
                    {
                        "name": "-e",
                        "lines": 1,
                        "flag": "-e"
                    },
                    {
                        "name": "-p",
                        "lines": 2,
                        "flag": "-p"
                    },
                    {
                        "name": "-l",
                        "lines": 2,
                        "flag": "-l"
                    },
                    {
                        "name": "-E",
                        "lines": 2,
                        "flag": "-E"
                    },
                    {
                        "name": "-I",
                        "lines": 2,
                        "flag": "-I"
                    },
                    {
                        "name": "-K",
                        "lines": 2,
                        "flag": "-K"
                    },
                    {
                        "name": "-c",
                        "lines": 2,
                        "flag": "-c"
                    },
                    {
                        "name": "-f",
                        "lines": 2,
                        "flag": "-f"
                    },
                    {
                        "name": "-T",
                        "lines": 1,
                        "flag": "-T"
                    },
                    {
                        "name": "-S",
                        "lines": 1,
                        "flag": "-S"
                    },
                    {
                        "name": "-B",
                        "lines": 3,
                        "flag": "-B"
                    },
                    {
                        "name": "supported properties:",
                        "lines": 61
                    }
                ]
            },
            {
                "name": "EXAMPLES",
                "lines": 2,
                "subsections": [
                    {
                        "name": "example.ephp:",
                        "lines": 20
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}