Skip to content

Instantly share code, notes, and snippets.

@WanderGink
Last active July 15, 2017 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WanderGink/e634c1f802032c46c0afae72400db004 to your computer and use it in GitHub Desktop.
Save WanderGink/e634c1f802032c46c0afae72400db004 to your computer and use it in GitHub Desktop.

Introduction Liquid

Basic

Object

Object trong Liquid bao gồm các thuộc tính (attribute) để xuất ra nội dung tương ứng và được biểu diễn bởi dấu ngoặc nhọn {{ và }}  

{{ page.title }}

Object Bizweb Theme: product, cart, collection, blog, article, page, custom..vv..

Tags

Tags trong Liquid tạo logic và luồng điều khiển cho template.

Control Flow Tags Loop Tags Theme Tags Variable Related Tags
if - endif for comment assign
elseif - else  cycle  include capture
case/when form increment
layout decrement
paginate
raw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment