Go to home
Product
Developers
Resources
Customers
Pricing
Log inSign up
Home
  • / Manuals
  • / Liquid templating language
The ultimate guide to Liquid templating

The ultimate guide to Liquid templating

In this comprehensive guide, we'll explore Liquid from the ground up, starting with its fundamental concepts and progressing to advanced techniques that will help you create sophisticated notification templates.

Contents

1.0 An introduction to Liquid
  • 1.1What is Liquid?
  • 1.2The three main components of Liquid
  • 1.3Real-life examples of Liquid
2.0 Understanding Liquid keys
  • 2.1What are Liquid keys?
  • 2.2Simple (or top-level) keys
  • 2.3Nested keys with dot notation
  • 2.4Working with arrays and lists
  • 2.5Complex data structures
  • 2.6Key naming conventions
  • 2.7Defensive templating with keys
  • 2.8Performance considerations
3.0 Understanding Liquid operators
  • 3.1What are Liquid operators?
  • 3.2Comparison operators
  • 3.3Logical operators
  • 3.4Special operators
  • 3.5Understanding truthy and falsy values
  • 3.6The `unless` tag with operators
  • 3.7Putting operators together
4.0 Understanding Liquid filters
  • 4.1What are Liquid filters?
  • 4.2String filters
  • 4.3Numeric filters
  • 4.4Array filters
  • 4.5Date filters
  • 4.6Default values
  • 4.7Chaining filters
  • 4.8Best practices for using filters
5.0 Understanding Liquid tags
  • 5.1What are Liquid tags?
  • 5.2Control flow tags
  • 5.3Iteration tags
  • 5.4Variable tags
  • 5.5Comment tags
  • 5.6Practical tag combinations
  • 5.7Best practices for using tags
6.0 Advanced Liquid concepts
  • 6.1Understanding date, time, and localization
  • 6.2Understanding whitespace control
  • 6.3Understanding encoding and escaping
  • 6.4Unlock powerful personalization with Knock
Logo

Product and customer messaging infrastructure.

Get startedBook a demo
  • PRODUCT
  • Log in
  • Changelog
  • Pricing
  • DEVELOPERS
  • Docs
  • SDKs
  • GitHub
GET OUR NEWSLETTER
Terms of usePrivacy policyCookie preferencesLLMs.txt