Skip to content

yourtion/liquid-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Liquid Swift

A Liquid syntax template engine for Swift.

Fetures

  • Comment
  • Raw
  • Truthy and falsy
  • Whitespace control
  • Filters
  • 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
  • Default Filter

Liquid Docs