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 Shaffer 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.