Choose Your Template Engine
Bridgetown’s default configured template language is Liquid. Liquid’s simple syntax and safe execution context make it ideal for designer-led template creation.
However, you can use a variety of different template engines within Bridgetown simply by using the appropriate file extension (aka .erb
), or by specifying the template engine in your resource’s front matter. Out of the box, Bridgetown provides support for both ERB and Serbea, and you can also use Haml or Slim by installing additional plugins.
To configure a new Bridgetown site to use a language other than Liquid as the default template engine regardless of file extension, use the -t
/--templates
option when running bridgetown new
.
For documentation on how to use Liquid or Ruby-based syntax in Bridgetown content and templates: