ERB (Ruby ERB Script)

The ERB Developer file format

ERB files contain source code written in a programming language of the same name. The ERB language is essentially a Ruby templating language. ERB files are saved in a plain text format which allows them to be opened in any text editing program. Thus, the file can contain any type of text alongside the ERB source code. Code in other programming languages can also be saved in the ERB file.

Technical details of ERB files

Even though files with an ERB extension can contain many different types of text and source code, there is a distinctiveness when it comes to ERB code saved in the file. When run with the so-called ERB template engine, the ERB file can be used to add Ruby ERB source code to another document or website file. Since Ruby ERB is more of a templating language, ERB files are also used as templates to create other files. Mainly, these are web files such as HTML, JS or RB.

More information about the ERB file format

File extension .erb
File category Developer
Associated programs Apple TextEdit (Mac)
Microsoft Notepad (Windows)
Panic Coda 2 (Mac)

Any Text Editor
Useful links More about ERB and Ruby
Developer n/a