Skip to content

Templating languages

Devin edited this page Jul 1, 2020 · 4 revisions

Frontman supports various templating languages out of the box.

You can use multiple templating languages in a single file by specifying all the extensions in the reverse order you want them to be compiled. For instance, with a file named posts.html.md.erb, Frontman first compiles the ERB, then the Markdown, and outputs a final HTML page.

Supported templating languages

ERB

Docs | Erubis Gem

Embedded Ruby (ERB) lets you use Ruby within HTML. Frontman executes the Ruby code in any file with the .erb extension.

Markdown

Docs | Kramdown Gem

Markdown is an HTML abstraction which allows for a simplified syntax to create simple HTML documents. Frontman converts Markdown to HTML for any file with the .md extension.

HAML

Docs | HAML Gem

HTML Abstraction Markup Language (HAML) is an HTML abstraction which also allows you to execute Ruby code. Frontman converts HAML to HTML and executes Ruby code in any file with the .haml extension.