-
-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for all built-in Jekyll filters: slugify, number_of_words, date_to_xmlschema, date_to_rfc822 #443
Comments
It'll be great to have these filters! Except for Jekyll logic specific ones like |
1 similar comment
It'll be great to have these filters! Except for Jekyll logic specific ones like |
I'm specifically missing the export function push<T> (v: T[], arg: T): T[] {
assert(arguments.length === 2, 'push expects 2 arguments')
v = toValue(v)
arg = toValue(arg)
return toArray(v).concat([arg])
} Or even just: export function push<T> (v: T[], arg: T): T[] {
return concat(v, [arg])
} I added this in #611. I hope you like the implementation and decide to accept the PR. Once the PR is merged, does the Playground automatically update to support it? |
Ideas for how to support the other filters. I used a full checkbox where I found the filter already in the codebase but did not check too deeply if it is really it or how it is implemented.
I am also interested in |
As long as Shopify/liquid implements this, I'm good to also add this feature.
Yes, it's on CI build for master branch. |
According to this link it is one of the built-in Jekyll filters: https://jekyllrb.com/docs/liquid/filters. I took this issue to mean there is interest in adding Jekyll-specific filters on top of the base Liquid language. Are you willing to still accept this filter in that case? |
@harttle I don't see a CI build here: https://github.com/harttle/liquidjs/actions |
@TomasHubelbauer sorry I thought it was brought from shopify. But it's also OK to bring jekyll filters to LiquidJS as long as it's not jekyll specific (I mean relying on Jekyll config or anything only available in Jekyll, or any concept only makes sense for Jekyll sites).
There's a docs flow https://github.com/harttle/liquidjs/blob/master/.github/workflows/docs.yml |
Then I regret to inform you that I think #611 might not be working. :( I am trying the snippet in the comments there in the Playground to no avail… |
No worry, there's a lot work remaining anyway. Thanks for your effort. |
@harttle I added tests for
But on CI there is no such issue: https://github.com/harttle/liquidjs/actions/runs/5060635227/jobs/9083770703 So I don't think this is why |
@harttle - Any chance that the |
Added group_by, group_by_exp, find, find_exp in the latest version, @bzerangue please try v10.11.0 |
Awesome! Thank you! I will check it out.
…On Sun, Apr 14, 2024 at 6:38 AM Jun Yang ***@***.***> wrote:
Added group_by, group_by_exp, find, find_exp in the latest version,
@bzerangue <https://github.com/bzerangue> please try v10.11.0
—
Reply to this email directly, view it on GitHub
<#443 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAGUG2YIGJH3SYRJMHIZFDY5JTDNAVCNFSM5MK4IPU2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBVGQYDCOJVGE4Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
# [10.13.0](v10.12.0...v10.13.0) (2024-05-13) ### Features * array_to_sentence_string and number_of_words filters from Jekyll, [#443](#443) ([50253a9](50253a9)) * date filters from Jekyll ([4955e75](4955e75)) * escape filters from Jekyll, [#443](#443) ([b12eb8a](b12eb8a)) * jsonify, inspect, to_integer, normalize_whitespace filters ([842b45c](842b45c)) * slugify filter from Jekyll, [#443](#443) ([47ddc11](47ddc11))
As we've tried to introduce all Jekyll filters listed on this issue and explained each of those can't be introduced, I'll close this issue. For further/missing filters not covered by this issue, feel free to file specific requests. |
liquidjs is "missing" a couple Jekyll-specific filters:
https://jekyllrb.com/docs/liquid/filters
Would you be willing to include them as part of Liquidjs? If so, I'll create a PR. Please let me know.
The text was updated successfully, but these errors were encountered: