{
    "content": [
        {
            "type": "text",
            "text": "# erb3.2 (man)\n\n## NAME\n\nerb — Ruby Templating\n\n## SYNOPSIS\n\nerb [--version] [-UPdnvx] [-E ext[:int]] [-S level] [-T mode] [-r library] [--] [file ...]\n\n## DESCRIPTION\n\nerb is a command line front-end for ERB library, which is an implementation of eRuby.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (11 subsections)\n- **EXAMPLES**\n- **SEE ALSO**\n- **REPORTING BUGS**\n- **AUTHORS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "erb3.2",
        "section": "",
        "mode": "man",
        "summary": "erb — Ruby Templating",
        "synopsis": "erb [--version] [-UPdnvx] [-E ext[:int]] [-S level] [-T mode] [-r library] [--] [file ...]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "-E",
                "long": null,
                "arg": null,
                "description": "--encoding external[:internal] Specifies the default value(s) for external encodings and internal encoding. Values should be separated with colon (:). You can omit the one for internal encodings, then the value (Encoding.defaultinternal) will be nil."
            },
            {
                "flag": "-P",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-S",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-T",
                "long": null,
                "arg": null,
                "description": "0 EOL remains after the embedded ruby script is evaluated. 1 EOL is removed if the line ends with %>. 2 EOL is removed if the line starts with <% and ends with %>. - EOL is removed if the line ends with -%>. And leading white‐ spaces are removed if the erb directive starts with <%-."
            },
            {
                "flag": "-r",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-U",
                "long": null,
                "arg": null,
                "description": "(Encoding.defaultinternal) to UTF-8."
            },
            {
                "flag": "-d",
                "long": null,
                "arg": null,
                "description": "--debug Turns on debug mode. $DEBUG will be set to true."
            },
            {
                "flag": "-h",
                "long": null,
                "arg": null,
                "description": "--help Prints a summary of the options."
            },
            {
                "flag": "-x",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-v",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-x",
                "long": null,
                "arg": null,
                "description": ""
            }
        ],
        "examples": [
            "Here is an eRuby script",
            "<?xml version=\"1.0\" ?>",
            "<% require 'prime' -%>",
            "<erb-example>",
            "<calc><%= 1+1 %></calc>",
            "<var><%= FILE %></var>",
            "<library><%= Prime.each(10).toa.join(\", \") %></library>",
            "</erb-example>",
            "Command",
            "% erb -T - example.erb",
            "prints",
            "<?xml version=\"1.0\" ?>",
            "<erb-example>",
            "<calc>2</calc>",
            "<var>example.erb</var>",
            "<library>2, 3, 5, 7</library>",
            "</erb-example>"
        ],
        "see_also": [
            {
                "name": "ruby",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ruby/1/json"
            },
            {
                "name": "ri",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ri/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 2,
                "subsections": [
                    {
                        "name": "-E _",
                        "lines": 7,
                        "flag": "-E"
                    },
                    {
                        "name": "-P",
                        "lines": 1,
                        "flag": "-P"
                    },
                    {
                        "name": "-S _",
                        "lines": 1,
                        "flag": "-S"
                    },
                    {
                        "name": "-T _",
                        "lines": 9,
                        "flag": "-T"
                    },
                    {
                        "name": "-r",
                        "lines": 1,
                        "flag": "-r"
                    },
                    {
                        "name": "-U",
                        "lines": 2,
                        "flag": "-U"
                    },
                    {
                        "name": "-d",
                        "lines": 2,
                        "flag": "-d"
                    },
                    {
                        "name": "-h",
                        "lines": 2,
                        "flag": "-h"
                    },
                    {
                        "name": "-n              -x",
                        "lines": 1,
                        "flag": "-x"
                    },
                    {
                        "name": "-v",
                        "lines": 1,
                        "flag": "-v"
                    },
                    {
                        "name": "-x",
                        "lines": 1,
                        "flag": "-x"
                    }
                ]
            },
            {
                "name": "EXAMPLES",
                "lines": 21,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "erb — Ruby Templating\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "erb [--version] [-UPdnvx] [-E ext[:int]] [-S level] [-T mode] [-r library] [--] [file ...]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "erb is a command line front-end for ERB library, which is an implementation of eRuby.\n\nERB  provides an easy to use but powerful templating system for Ruby.  Using ERB, actual Ruby\ncode can be added to any plain text document for the purposes of generating document informa‐\ntion details and/or flow control.\n\nerb is a part of Ruby.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "--version      Prints the version of erb.\n",
                "subsections": [
                    {
                        "name": "-E _",
                        "content": "--encoding external[:internal]\nSpecifies the default value(s) for external encodings and  internal  encoding.\nValues should be separated with colon (:).\n\nYou   can   omit   the   one   for   internal   encodings,   then   the  value\n(Encoding.defaultinternal) will be nil.\n",
                        "flag": "-E"
                    },
                    {
                        "name": "-P",
                        "content": "",
                        "flag": "-P"
                    },
                    {
                        "name": "-S _",
                        "content": "",
                        "flag": "-S"
                    },
                    {
                        "name": "-T _",
                        "content": "0       EOL remains after the embedded ruby script is evaluated.\n\n1       EOL is removed if the line ends with %>.\n\n2       EOL is removed if the line starts with <% and ends with %>.\n\n-       EOL is removed if the line ends with -%>.   And  leading  white‐\nspaces are removed if the erb directive starts with <%-.\n",
                        "flag": "-T"
                    },
                    {
                        "name": "-r",
                        "content": "",
                        "flag": "-r"
                    },
                    {
                        "name": "-U",
                        "content": "(Encoding.defaultinternal) to UTF-8.\n",
                        "flag": "-U"
                    },
                    {
                        "name": "-d",
                        "content": "--debug        Turns on debug mode.  $DEBUG will be set to true.\n",
                        "flag": "-d"
                    },
                    {
                        "name": "-h",
                        "content": "--help         Prints a summary of the options.\n",
                        "flag": "-h"
                    },
                    {
                        "name": "-n              -x",
                        "content": "",
                        "flag": "-x"
                    },
                    {
                        "name": "-v",
                        "content": "",
                        "flag": "-v"
                    },
                    {
                        "name": "-x",
                        "content": "",
                        "flag": "-x"
                    }
                ]
            },
            "EXAMPLES": {
                "content": "Here is an eRuby script\n\n<?xml version=\"1.0\" ?>\n<% require 'prime' -%>\n<erb-example>\n<calc><%= 1+1 %></calc>\n<var><%= FILE %></var>\n<library><%= Prime.each(10).toa.join(\", \") %></library>\n</erb-example>\n\nCommand\n% erb -T - example.erb\nprints\n\n<?xml version=\"1.0\" ?>\n<erb-example>\n<calc>2</calc>\n<var>example.erb</var>\n<library>2, 3, 5, 7</library>\n</erb-example>\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "ruby(1).\n\nAnd see ri(1) documentation for ERB class.\n",
                "subsections": []
            },
            "REPORTING BUGS": {
                "content": "•   Security vulnerabilities should be reported via an email to security@ruby-lang.org.   Re‐\nported problems will be published after being fixed.\n\n•   Other  bugs  and  feature  requests  can  be  reported via the Ruby Issue Tracking System\n(https://bugs.ruby-lang.org/).  Do not report security vulnerabilities  via  this  system\nbecause it publishes the vulnerabilities immediately.\n",
                "subsections": []
            },
            "AUTHORS": {
                "content": "Written by Masatoshi SEKI.\n\nUNIX                                      December 16, 2018                                   ERB(1)",
                "subsections": []
            }
        }
    }
}