I am in a project in which I found a file with the extension .html.arb, in my app/admin folder. What is the difference between this extension and the .html.erb extension?
arb is the default file extensions for Arbre, a Ruby DSL for defining HTML views in Ruby instead of HTML or a templating language like ERb, Mustache, Liquid, or HAML.
As @Chowlett mentioned before, erb stands for Embedded Ruby. When you define any file as ". html. erb" that means it's an HTML file with ruby code embedded in it and it is similar to ". rhtml" extension of rails file.
@levinalex already pointed you in the right direction, but to make it more clear:
.html.arb
is the view partial designation for Arbre, just like .html.erb
is used by ERB and .html.haml
is used by Haml.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With