Skip to content
pubscout

liquify

1.6.1, released 4 months ago by glenfordwilliams.com

A powerful and extensible Liquid template engine for Dart.

WASM-ready
$ flutter pub add liquify
Source repository

What it does

Parses, renders, and extends Liquid templates in Dart and Flutter applications. Supports synchronous and asynchronous rendering, custom delimiters, environment-scoped filters, and template inheritance.

AI-written summary of version 1.6.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to render Liquid templates within Dart or Flutter applications.
  • You want custom delimiters or sandboxed template execution.

Skip it when

  • You do not need dynamic template rendering or the Liquid syntax.

Strengths

  • Full support for standard Liquid syntax and semantics
  • Synchronous and asynchronous rendering
  • Extensible architecture for custom tags and filters
  • High-performance parsing with caching and browser support

Weaknesses

  • Requires learning Liquid template language syntax if unfamiliar

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
11

Not documented

import 'package:liquify/liquify.dart';

void main() {
  final template = Template.parse(
    'Hello, {{ name | upcase }}!',
    data: {'name': 'world'},
  );
  
  print(template.render()); // Output: Hello, WORLD!
}

Alternatives

Packages that do the same job and could replace liquify.

Works with

Packages commonly used together with liquify: ones it builds on, ones built on it, and its own family.