liquid_dart library
Liquid template engine for Dart and Flutter.
Classes
- DropMap
- Adapts a Dart Map into a LiquidDrop.
- InMemoryFileSystem
- Simple in-memory filesystem backed by a map of templates.
- LiquidDrop
- Interface for custom objects exposed to Liquid templates.
- LiquidEngine
- Core engine used to parse and render Liquid templates.
- LiquidFileSystem
-
Provides template source text for
{% include %}and{% render %}. - LiquidOptions
- Configuration for parsing and rendering Liquid templates.
- LiquidTemplate
-
Parsed template ready to be rendered with a
RenderContext. - NoopFileSystem
- Filesystem that always errors, used as a safe default.
Typedefs
- AssetUrlResolver = String Function(String key)
- Resolves asset keys to full URLs.
- FileUrlResolver = String Function(String key)
- Resolves file keys to full URLs.
- ImageUrlResolver = String Function(String key, String size)
- Resolves image keys and requested sizes to full URLs.
- LiquidCallable0 = Object? Function()
- Zero-argument callable used by drops for computed values.
Exceptions / Errors
- LiquidError
- Base class for Liquid parsing and rendering errors.
- LiquidParseError
- Error raised when parsing fails.
- LiquidRenderError
- Error raised when rendering fails.