-
Notifications
You must be signed in to change notification settings - Fork 4
Templating languages
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.
Embedded Ruby (ERB) lets you use Ruby within HTML. Frontman executes the Ruby code in any file with the .erb
extension.
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.
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.