liquid.cr
liquid.cr copied to clipboard
Liquid template engine for Crystal
Liquid does have a syntax for this, but I don't see it within this library. It is a very useful part of Liquid. https://shopify.github.io/liquid/tags/template/
~This still a draft.~ All public methods with no arguments from a Drop is exported. I implemented a small stack machine to be able to process the expressions given to...
# Filters - [x] abs - [x] append - [x] capitalize - [x] ceil - [x] compact - [x] date - [x] default - [x] divided_by - [x] downcase -...
I've benchmarked this project versus Shopify/liquid on Ruby 2.5 And got very strange results: **Ruby** ```ruby tpl = Liquid::Template.parse(template) ctx = Liquid::Context.new ctx["order"] = order Benchmark.ips do |x| x.report("parse &...
this works fine ------------------- ``` {% assign params_name = "{{ name | underscore }}_params" %} {% assign hash_name = "{{ name| underscore }}_hash" %} {% assign create_model_method = "create_{{ name...
Choose which action is the best when bad arguments are given to a filter: - Raise an exception - Return the data given in input ( default for now )...
- [ ] Add `contains` keyword ( http://shopify.github.io/liquid/basics/operators/ ) - [ ] Add support for Array into expressions - [ ] Add square bracket [ ] notation to access an...
- [ ] Add decrement block - [x] Add case/when - [ ] Add unless see : http://shopify.github.io/liquid/tags/control-flow/
This PR fixes some warnings detected by Ameba and add the ameba action to CI.