Skip to content

mikoweb/liquid4-blocks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Liquid Blocks

This gem adds Django-like block and extends tags to the Liquid templating language.

Usage

Add the following to your Gemfile

gem 'liquid4-blocks', '~> 0.7.0'

And the following to your code

require 'liquid_blocks'

This allows you to have hello.liquid

{% extends 'layout' %}

{% block middle %}hello{% endblock %}

Which extends _layout.liquid

top

{% block middle %}middle{% endblock %}

bottom

Which renders into

top

hello

bottom

License

This work is licensed under the MIT License (see the LICENSE file).

Copyright © 2009 Dan Webb

About

Django-style template inheritance for the Liquid templating language

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%