All Projects → brunophilipe → LiquidKit

brunophilipe / LiquidKit

Licence: MIT license
Liquid template language parser engine in Swift.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to LiquidKit

dry
Dry is a new template engine and language, and is a superset of Shopify's Liquid, with first-class support for advanced inheritance features, and more. From the creators of Enquirer, Assemble, Remarkable, and Micromatch.
Stars: ✭ 66 (+247.37%)
Mutual labels:  template-engine, liquid-templating-engine
liquidpy
A port of liquid template engine for python
Stars: ✭ 49 (+157.89%)
Mutual labels:  template-engine, liquid-templating-engine
liquid
A Python engine for the Liquid template language.
Stars: ✭ 40 (+110.53%)
Mutual labels:  template-engine, liquid-templating-engine
frep
Generate file using template from environment, arguments, json/yaml/toml config files
Stars: ✭ 135 (+610.53%)
Mutual labels:  template-engine
ftmpl
Fast typesafe templating for golang
Stars: ✭ 61 (+221.05%)
Mutual labels:  template-engine
mole
A tool for managing design decision outputs for different platforms
Stars: ✭ 30 (+57.89%)
Mutual labels:  template-engine
papercraft
Composable templating for Ruby
Stars: ✭ 162 (+752.63%)
Mutual labels:  template-engine
morestachio
Lightweight, powerful, flavorful, template engine.
Stars: ✭ 45 (+136.84%)
Mutual labels:  template-engine
Magento2-Twig
Twig Template Engine for Magento2
Stars: ✭ 58 (+205.26%)
Mutual labels:  template-engine
hydrate-text
A small, dependency-free and strongly typed template engine.
Stars: ✭ 45 (+136.84%)
Mutual labels:  template-engine
Textrude
Code generation from YAML/JSON/CSV models via SCRIBAN templates
Stars: ✭ 79 (+315.79%)
Mutual labels:  template-engine
bash-tpl
A smart, lightweight shell script templating engine, written in Bash
Stars: ✭ 26 (+36.84%)
Mutual labels:  template-engine
cottle
High performance template engine for C#
Stars: ✭ 99 (+421.05%)
Mutual labels:  template-engine
laravel-theme
This package creates multiple managed theme infrastructure for Laravel.
Stars: ✭ 19 (+0%)
Mutual labels:  template-engine
simple-template
Text templating processor for SWI-Prolog.
Stars: ✭ 29 (+52.63%)
Mutual labels:  template-engine
pug4py
Use Pug.js within any python framework
Stars: ✭ 17 (-10.53%)
Mutual labels:  template-engine
tenjin
📝 A template engine.
Stars: ✭ 15 (-21.05%)
Mutual labels:  template-engine
TemplateEngine
Design and build web applications with components using only your web browser
Stars: ✭ 41 (+115.79%)
Mutual labels:  template-engine
react-liquid
Liquid templating language component for React
Stars: ✭ 50 (+163.16%)
Mutual labels:  liquid-templating-engine
nhplate
Net Heroes Template Engine for Node.js and browsers
Stars: ✭ 26 (+36.84%)
Mutual labels:  template-engine

LiquidKit

Liquid template language parser engine in Swift.

About

Liquid 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.

LiquidKit brings the power of Liquid to iOS and macOS. It is currently under development, so not all features are available.

This project is based on the liquid-swift project by 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.

Features

  • Comment
  • Raw
  • Truthy and falsy
  • Whitespace control
  • Dot operator dict.key[index]
  • Filters
    • abs
    • append
    • at_least
    • at_most
    • capitalize
    • ceil
    • compact
    • concat
    • date
    • default
    • divided_by
    • downcase
    • escape
    • escape_once
    • first
    • floor
    • join
    • last
    • lstrip
    • map
    • minus
    • modulo
    • newline_to_br
    • plus
    • prepend
    • remove
    • remove_first
    • replace
    • replace_first
    • reverse
    • round
    • rstrip
    • size
    • slice
    • sort
    • sort_natural
    • split
    • strip
    • strip_html
    • strip_newlines
    • times
    • truncate
    • truncatewords
    • uniq
    • upcase
    • url_decode
    • url_encode
  • Variable
    • assign
    • capture
    • increment
    • decrement
  • Operators
    • == equals
    • != does not equal
    • > greater than
    • < less than
    • >= greater than or equal to
    • <= less than or equal to
    • or logical or
    • and logical and
    • contains checks substring inside a string
  • Control flow
    • if if a certain condition is true
    • unless if a certain condition is not met
    • elsif more conditions
    • else else conditions
    • case/when switch statement
  • Iteration
    • for
      • break
      • continue
      • limit limits the loop (for parameters)
      • offset begins the loop at the specified index (for parameters)
      • range defines a range of numbers to loop through
      • reversed reverses the order of the loop
    • cycle
      • group
    • tablerow
      • cols
      • limit limits the loop (for parameters)
      • offset begins the loop at the specified index (for parameters)
      • range defines a range of numbers to loop through
  • Default Filter

Liquid Docs

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].