liquify
1.6.1, released 4 months ago by glenfordwilliams.com
A powerful and extensible Liquid template engine for Dart.
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.
- mustache_template
A Dart library that parses and renders Mustache templates.
91Compare - jinja
Jinja2 template engine port for Dart supporting variables, control structures, and template inheritance.
84Compare - baseflow_plugin_template
A template for plugin examples
53Compare - template_engine
Dart library to parse and render text templates with variables and custom tags.
64Compare
Works with
Packages commonly used together with liquify: ones it builds on, ones built on it, and its own family.
- petitparserliquify depends on itBuild fast, composable, and type-safe grammars and parsers in plain Dart code.
- webliquify depends on itLightweight bindings for browser APIs via JS interop
- htmlliquify depends on itA Dart implementation of an HTML5 parser for strings and bytes.
- argsliquify depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- intlliquify depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- fileliquify depends on itPluggable, mockable file system abstraction for Dart with in-memory support.
- loggingliquify depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- timezoneliquify depends on itTime zone databases and time zone aware DateTime class in Dart.