Skip to content

Instantly share code, notes, and snippets.

View bogdananton's full-sized avatar

Bogdan Anton bogdananton

View GitHub Profile
@roachhd
roachhd / HACK-IT.md
Last active April 4, 2024 01:48
Jekyll + Liquid quick bits ❤️❤️

First steps

It's very simple to get started with Liquid. A Liquid template is rendered in two steps: Parse and Render. For an overview of the Liquid syntax, please read [[Liquid for Designers]].

@template = Liquid::Template.parse("hi {{name}}")  # Parses and compiles the template
@template.render( 'name' => 'tobi' )               # Renders the output => "hi tobi"