Protecting the investment in high efficiency boilers, chillers, and other system components requires the fluid to be distributed efficiently. Eliminating air and dirt does away with many maintenance items that have been considered routine, saves energy, and improves overall system performance and heat transfer. We support a network of factory trained sales offices across North America, each with a staff of qualified sales and application professionals who can demonstrate how Distribution Efficiency will protect those investments.

ERB is useful for any generic templating situation. Note that in this example, we use the convenient “% at start of line” tag, and we quote the template literally with %q{...} to avoid trouble with the backslash.

Sets optional filename and line number that will be used in ERB code evaluation and error reporting. See also filename= and lineno=

Can be used to set eoutvar as described in ERB::new. It's probably easier to just use the constructor though, since calling this method requires the setup of an ERB compiler object.

There are a variety of templating solutions available in various Ruby projects. For example, RDoc, distributed with Ruby, uses its own template engine, which can be reused elsewhere.

Executes the generated ERB code to produce a completed template, returning the results of that code. (See ERB::new for details on how this process can be affected by safe_level.)

Image

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.

It has come to our attention that Spirotherm's name is being used in fraudulent job postings. These job postings are NOT posted by Spirotherm and instead are part of an elaborate scam. The FTC has additional information about job scams and fake check scams. To help protect others, you can file a report with the FTC.

eoutvar can be used to set the name of the variable ERB will build up its output in. This is useful when you need to run multiple ERB templates through the same binding and/or when you want to control where output ends up. Pass the name of the variable to be used inside a String.

ERB (or Ruby code generated by ERB) returns a string in the same character encoding as the input string. When the input string has a magic comment, however, it returns a string in the encoding specified by the magic comment.

ERB is often used in .rhtml files (HTML with embedded Ruby). Notice the need in this example to provide a special binding when the template is run, so that the instance variables in the Product object can be resolved.

If trim_mode is passed a String containing one or more of the following modifiers, ERB will adjust its code generation as listed:

Spirotherm, Inc. manufactures the industry leading high efficiency Spirovent® coalescing type air elimination products and its extended line of Spirotrap® dirt separators. A wholly owned subsidiary of Spiro Enterprises, Inc. , we have been developing and manufacturing products to improve water quality in the HVAC industry for almost 40 years. Sizes from 3/4” to 36” pipe, flows to over 30,000 GPM for residential, commercial, industrial, and institutional applications.