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.
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:
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:
Thanks.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs