$40 GRAYBYTE WORDPRESS FILE MANAGER $57

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby34/share/man/man1/

HOME
Current File : /opt/alt/ruby34/share/man/man1//erb.1
.\"Ruby is copyrighted by Yukihiro Matsumoto <[email protected]>.
.Dd December 16, 2018
.Dt ERB \&1 "Ruby Programmer's Reference Guide"
.Os UNIX
.Sh NAME
.Nm erb
.Nd Ruby Templating
.Sh SYNOPSIS
.Nm
.Op Fl -version
.Op Fl UPdnvx
.Op Fl E Ar ext Ns Op Ns : Ns int
.Op Fl S Ar level
.Op Fl T Ar mode
.Op Fl r Ar library
.Op Fl -
.Op file ...
.Pp
.Sh DESCRIPTION
.Nm
is a command line front-end for
.Li "ERB"
library, which is an implementation of eRuby.
.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 .
.Pp
.Sh OPTIONS
.Bl -tag -width "1234567890123" -compact
.Pp
.It Fl -version
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 (:).
.Pp
You can omit the one for internal encodings, then the value
.Pf ( Li "Encoding.default_internal" ) will be nil.
.Pp
.It Fl P
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).
.Ar mode
can be one of
.Bl -hang -offset indent
.It Sy 0
EOL remains after the embedded ruby script is evaluated.
.Pp
.It Sy 1
EOL is removed if the line ends with
.Li "%>" .
.Pp
.It Sy 2
EOL is removed if the line starts with
.Li "<%"
and ends with
.Li "%>" .
.Pp
.It Sy -
EOL is removed if the line ends with
.Li "-%>" .
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 default value for internal encodings
.Pf ( Li "Encoding.default_internal" ) to UTF-8.
.Pp
.It Fl d
.It Fl -debug
Turns on debug mode.
.Li "$DEBUG"
will be set to true.
.Pp
.It Fl h
.It Fl -help
Prints a summary of the options.
.Pp
.It Fl n
Used with
.Fl x .
Prepends the line number to each line in the output.
.Pp
.It Fl v
Enables verbose mode.
.Li "$VERBOSE"
will be set to true.
.Pp
.It Fl x
Converts the eRuby script into Ruby script and prints it without line numbers.
.Pp
.El
.Pp
.Sh EXAMPLES
Here is an eRuby script
.Bd -literal -offset indent
<?xml version="1.0" ?>
<% require 'prime' -%>
<erb-example>
  <calc><%= 1+1 %></calc>
  <var><%= __FILE__ %></var>
  <library><%= Prime.each(10).to_a.join(", ") %></library>
</erb-example>
.Ed
.Pp
Command
.Dl "% erb -T - example.erb"
prints
.Bd -literal -offset indent
<?xml version="1.0" ?>
<erb-example>
  <calc>2</calc>
  <var>example.erb</var>
  <library>2, 3, 5, 7</library>
</erb-example>
.Ed
.Pp
.Sh SEE ALSO
.Xr ruby 1 .
.Pp
And see
.Xr ri 1
documentation for
.Li "ERB"
class.
.Pp
.Sh REPORTING BUGS
.Bl -bullet
.It
Security vulnerabilities should be reported via an email to
.Mt [email protected] .
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 this system because it publishes the vulnerabilities immediately.
.El
.Sh AUTHORS
Written by Masatoshi SEKI.


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
29 Mar 2025 8.41 AM
root / root
0755
bundle-add.1
2.789 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-binstubs.1
1.653 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-cache.1
4.14 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-check.1
1.082 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-clean.1
0.709 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-config.1
21.087 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-console.1
1.435 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-doctor.1
1.108 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-env.1
0.33 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-exec.1
6.566 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-fund.1
0.607 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-gem.1
6.445 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-help.1
0.438 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-info.1
0.512 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-init.1
1.139 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-inject.1
0.97 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-install.1
16.618 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-issue.1
1.272 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-licenses.1
0.304 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-list.1
0.926 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-lock.1
3.647 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-open.1
0.778 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-outdated.1
3.396 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-platform.1
1.386 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-plugin.1
2.111 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-pristine.1
1.615 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-remove.1
0.816 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-show.1
0.755 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-update.1
13.598 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-version.1
0.604 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle-viz.1
1.238 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
bundle.1
3.672 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
erb.1
3.248 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
rake.1
3.638 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
ri.1
5.222 KB
27 Jan 2026 4.00 PM
root / linksafe
0644
ruby.1
23.276 KB
27 Jan 2026 4.00 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF