Embedded Ruby

I know when we want to embed ruby code, we use a file with the
extension: *.html.erb

My question is: Is “Embedded Ruby” a kind of interpreter?

Thanks.

No. Embedding Ruby in a .html.erb file in just tells Rails to use the
ERB templating library.

It’s still processed by the standard Ruby interpreter.

See the docs for more info:

http://ruby-doc.org/stdlib/libdoc/erb/rdoc/classes/ERB.html

Tim S. wrote:

No. Embedding Ruby in a .html.erb file in just tells Rails to use the
ERB templating library.

It’s still processed by the standard Ruby interpreter.

See the docs for more info:

http://ruby-doc.org/stdlib/libdoc/erb/rdoc/classes/ERB.html

Thanks.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs