# Liquid

> Safe, customer facing template language for flexible web apps

Source: https://talira.ai/catalog/liquid-97qqwka5
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / templating](https://talira.ai/categories/libraries/templating), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Platforms: linux, macos, windows
- Licence: MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Plugins: yes
- Backed by: [Shopify](https://talira.ai/orgs/shopify.md)

Liquid is [Shopify](https://talira.ai/catalog/shopify-hwp8bjrz.md)'s template language, written so that users can edit templates without being able to run code on the server: it never evaluates Ruby, and templates see only the variables and filters you give them. Templates use `{{ }}` for output with filters and `{% %}` for tags such as loops and conditions, and parsing is separate from rendering, so a template is compiled once and rendered many times. It works for HTML and emails alike, and apps add their own filters and tags.

## Links

- Website: https://shopify.github.io/liquid/
- GitHub: https://github.com/Shopify/liquid
- Docs: https://shopify.github.io/liquid/

## Problems it solves

- let customers edit their own email or page templates without running code on our server
- a safe template language for templates stored in the database
- render user-written templates in Ruby with loops and conditions but no access to our objects
- ERB is too dangerous to let customers write
- parse a template once and render it thousands of times with different data
- add our own filters for formatting dates and money in customer templates
- the same template syntax for HTML pages and emails
- Shopify-style templates in a Rails app

## Features

- no code evaluation
- output with filters
- tags for loops, conditions and assignments
- separate parse and render
- custom filters and tags
- error modes from lax (the default) to strict2

## Capabilities

- Takes plugins: plan not known

## Trust

Overall: 0.59 out of 1.
Signals: maintenance 0.62, adoption 0.82, momentum 0.52, community 0.93, backing 0.30, extensibility 0.20.

- last commit 27 days ago
- 3 commits in the last 90 days
- latest release v5.13.0 4 months ago
- 11.9k GitHub stars
- 208 contributors
- backed by Shopify
- has a plugin system

## Alternatives

- [LiquidJS](https://talira.ai/catalog/liquidjs-wzqmnt7q.md): A simple, expressive, safe and Shopify compatible template engine in pure JavaScript
- [Jinja](https://talira.ai/catalog/jinja-kvze87j3.md): A very fast and expressive template engine
- [Haml](https://talira.ai/catalog/haml-ceka8d0g.md): HTML templating engine for Ruby with indentation-based, end-tag-free markup
