{"id":13995016,"url":"https://github.com/brunophilipe/LiquidKit","last_synced_at":"2025-07-22T21:31:46.142Z","repository":{"id":148075152,"uuid":"148712794","full_name":"brunophilipe/LiquidKit","owner":"brunophilipe","description":"Liquid template language parser engine in Swift.","archived":false,"fork":false,"pushed_at":"2020-06-17T18:56:46.000Z","size":357,"stargazers_count":23,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-17T15:03:32.146Z","etag":null,"topics":["cocoapods","framework","ios","library","liquid-templating-engine","macos","template-engine"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brunophilipe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-14T00:14:04.000Z","updated_at":"2023-06-18T20:09:40.000Z","dependencies_parsed_at":"2023-06-07T20:45:44.664Z","dependency_job_id":null,"html_url":"https://github.com/brunophilipe/LiquidKit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunophilipe%2FLiquidKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunophilipe%2FLiquidKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunophilipe%2FLiquidKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brunophilipe%2FLiquidKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brunophilipe","download_url":"https://codeload.github.com/brunophilipe/LiquidKit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227177735,"owners_count":17743151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cocoapods","framework","ios","library","liquid-templating-engine","macos","template-engine"],"created_at":"2024-08-09T14:03:12.910Z","updated_at":"2024-11-29T17:30:51.731Z","avatar_url":"https://github.com/brunophilipe.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# LiquidKit\n\nLiquid template language parser engine in Swift.\n\n## About\n\nLiquid is a template language that is used by several projects, such as Shopify and Jekyll (which powers GitHub pages). Liquid allows conditional injection of content into html pages through a simple and elegant syntax.\n\nLiquidKit brings the power of Liquid to iOS and macOS. It is currently under development, so not all features are available.\n\nThis project is based on the [liquid-swift](https://github.com/yourtion/liquid-swift) project by [yourtion](https://github.com/yourtion), which provided a barebones implementation of the Lexer and the Parser. However, it was lacking any implementation of Tags, Filters, and everything else, which I have added. It has been renamed and re-hosted since I intend to maintain this project myself.\n\n## Features\n\n- [x] Comment\n- [x] Raw\n- [x] Truthy and falsy\n- [ ] Whitespace control\n- [x] Dot operator `dict.key[index]`\n- [x] Filters\n  - [x] abs\n  - [x] append\n  - [x] at_least\n  - [x] at_most\n  - [x] capitalize\n  - [x] ceil\n  - [x] compact\n  - [x] concat\n  - [x] date\n  - [x] default\n  - [x] divided_by\n  - [x] downcase\n  - [x] escape\n  - [x] escape_once\n  - [x] first\n  - [x] floor\n  - [x] join\n  - [x] last\n  - [x] lstrip\n  - [x] map\n  - [x] minus\n  - [x] modulo\n  - [x] newline_to_br\n  - [x] plus\n  - [x] prepend\n  - [x] remove\n  - [x] remove_first\n  - [x] replace\n  - [x] replace_first\n  - [x] reverse\n  - [x] round\n  - [x] rstrip\n  - [x] size\n  - [x] slice\n  - [x] sort\n  - [x] sort_natural\n  - [x] split\n  - [x] strip\n  - [x] strip_html\n  - [x] strip_newlines\n  - [x] times\n  - [x] truncate\n  - [x] truncatewords\n  - [x] uniq\n  - [x] upcase\n  - [x] url_decode\n  - [x] url_encode\n- [x] Variable\n  - [x] `assign`\n  - [x] `capture`\n  - [x] `increment`\n  - [x] `decrement`\n- [x] Operators\n  - [x] `==` equals\n  - [x] `!=` does not equal\n  - [x] `\u003e` greater than\n  - [x] `\u003c` less than\n  - [x] `\u003e=` greater than or equal to\n  - [x] `\u003c=` less than or equal to\n  - [x] `or` logical or\n  - [x] `and` logical and\n  - [x] `contains` checks substring inside a string\n- [x] Control flow\n  - [x] `if` if a certain condition is true\n  - [x] `unless` if a certain condition is not met\n  - [x] `elsif` more conditions\n  - [x] `else` else conditions\n  - [x] `case/when` switch statement\n- [x] Iteration\n  - [x] `for`\n     - [x] `break`\n     - [x] `continue`\n     - [x] `limit` limits the loop (for parameters)\n     - [x] `offset` begins the loop at the specified index (for parameters)\n     - [x] `range` defines a range of numbers to loop through\n     - [x] `reversed` reverses the order of the loop\n  - [x] `cycle`\n     - [x] `group`\n  - [x] `tablerow`\n     - [x] `cols`\n     - [x] `limit` limits the loop (for parameters)\n     - [x] `offset` begins the loop at the specified index (for parameters)\n     - [x] `range` defines a range of numbers to loop through\n- [x] Default Filter\n\n## Liquid Docs\n\n- [English](https://shopify.github.io/liquid/)\n- [Chinese](https://liquid.bootcss.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrunophilipe%2FLiquidKit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrunophilipe%2FLiquidKit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrunophilipe%2FLiquidKit/lists"}