liquid-crystal
Version, currently master branch1 version
- master branchlatestSep 26, 2025
github.com/wmoxam/liquid-crystal
Liquid Markup for Crystal
8 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
liquid-crystal:
github: wmoxam/liquid-crystal
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- Wesley Moxam <me@wmoxam.com>
Dependencies
Development Dependencies
- minitest~> 1.3.0git: https://github.com/ysbaddaden/minitest.cr.gitdev
README
[](https://travis-ci.org/wmoxam/liquid-crystal)
# Liquid template engine
A port of the [Liquid template engine](https://github.com/Shopify/liquid) to [Crystal](https://github.com/crystal-lang/crystal)
## Usage
```crystal
require "liquid-crystal"
markup = "{% if user %}
<p>Hello {{ user.name }}!</p>
{% endif %}"
template = Liquid::Template.parse template
result = template.render({"user" => {"name" => "Matz"}})
# <p>Hello Matz</p>
```
# Development Status
It's still a WIP, however much of the code and specs have been converted. Work
needs to be done for added stability, adding missing filters, implementing
missing tests
## Todo
### Missing standard filters
* sort
* map
### Missing tests
* Template tokenize tests
* All tests that expect an error to *not* be raised
### Support for procs in templates
* I'm not sure if I actually want to support thisDocumentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Sep 26, 2025
- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/wmoxam/liquid-crystal
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 1