summaryrefslogtreecommitdiff
path: root/man/erb.1
diff options
context:
space:
mode:
Diffstat (limited to 'man/erb.1')
-rw-r--r--man/erb.164
1 files changed, 33 insertions, 31 deletions
diff --git a/man/erb.1 b/man/erb.1
index 87a0a6fca4..38a4c14ea4 100644
--- a/man/erb.1
+++ b/man/erb.1
@@ -1,6 +1,6 @@
.\"Ruby is copyrighted by Yukihiro Matsumoto <matz@netlab.jp>.
-.Dd December 27, 2008
-.Dt ERB(1) "" "Ruby Programmers Reference Guide"
+.Dd March 27, 2026
+.Dt ERB 1 "Ruby Programmer's Reference Guide"
.Os UNIX
.Sh NAME
.Nm erb
@@ -18,14 +18,14 @@
.Pp
.Sh DESCRIPTION
.Nm
-is a command line front-end for
+is a command line front-end for
.Li "ERB"
library, which is an implementation of eRuby.
-
-eRuby provdes an easy to use but powerful templating system for Ruby.
-Using eRuby, actual Ruby code can be added to any plain text document for the
+.Pp
+ERB provides an easy to use but powerful templating system for Ruby.
+Using ERB, actual Ruby code can be added to any plain text document for the
purposes of generating document information details and/or flow control.
-
+.Pp
.Nm
is a part of
.Nm Ruby .
@@ -34,26 +34,25 @@ is a part of
.Bl -tag -width "1234567890123" -compact
.Pp
.It Fl -version
-Prints the version of
+Prints the version of
.Nm .
.Pp
.It Fl E Ar external Ns Op : Ns Ar internal
.It Fl -encoding Ar external Ns Op : Ns Ar internal
Specifies the default value(s) for external encodings and internal encoding. Values should be separated with colon (:).
-
-You can ommit the one for internal encodings, then the value
+.Pp
+You can omit the one for internal encodings, then the value
.Pf ( Li "Encoding.default_internal" ) will be nil.
.Pp
.It Fl P
-Evaluates lines starting with
-.Li "%"
-as Ruby code and removes the tailing EOLs.
+Disables ruby code evaluation for lines beginning with
+.Li "%" .
.Pp
.It Fl S Ar level
Specifies the safe level in which eRuby script will run.
.Pp
.It Fl T Ar mode
-Specifies trim mode (default 0).
+Specifies trim mode (default 0).
.Ar mode
can be one of
.Bl -hang -offset indent
@@ -77,10 +76,12 @@ And leading whitespaces are removed if the erb directive starts with
.Li "<%-" .
.Pp
.El
+.It Fl r
+Load a library
.Pp
.It Fl U
can be one of
-Sets the defalut value for internal encodings
+Sets the default value for internal encodings
.Pf ( Li "Encoding.default_internal" ) to UTF-8.
.Pp
.It Fl d
@@ -91,15 +92,15 @@ will be set to true.
.Pp
.It Fl h
.It Fl -help
-Prints a summry of the options.
+Prints a summary of the options.
.Pp
.It Fl n
Used with
.Fl x .
-Prepends the line number to each line in the output.
+Prepends the line number to each line in the output.
.Pp
.It Fl v
-Enables verbose mode.
+Enables verbose mode.
.Li "$VERBOSE"
will be set to true.
.Pp
@@ -119,7 +120,7 @@ Here is an eRuby script
<library><%= Prime.each(10).to_a.join(", ") %></library>
</erb-example>
.Ed
-
+.Pp
Command
.Dl "% erb -T - example.erb"
prints
@@ -134,25 +135,26 @@ prints
.Pp
.Sh SEE ALSO
.Xr ruby 1 .
-
-And see
+.Pp
+And see
.Xr ri 1
-documentation for
+documentation for
.Li "ERB"
class.
-.El
.Pp
.Sh REPORTING BUGS
.Bl -bullet
-.Li Security vulnerabilities should be reported via an email to
-.Aq security@ruby-lang.org Ns
-.Li .
-Reported problems will be published after fixed.
-.Pp
-.Li And you can report other bugs and feature requests via the
-Ruby Issue Tracking System (http://redmine.ruby-lang.org).
+.It
+Security vulnerabilities should be reported via an email to
+.Mt security@ruby-lang.org .
+Reported problems will be published after being fixed.
+.Pp
+.It
+Other bugs and feature requests can be reported via the
+Ruby Issue Tracking System
+.Pq Lk https://bugs.ruby-lang.org/ .
Do not report security vulnerabilities
-via the system because it publishes the vulnerabilities immedately.
+via this system because it publishes the vulnerabilities immediately.
.El
.Sh AUTHORS
Written by Masatoshi SEKI.