Implementation of template inheritance, similar to what offers Django.
See the discussion with the Shopify team about it here.
Important. That's not a fork of the Liquid gem, it's rather a kind of add-on for Liquid. It requires a version of Liquid higher than the 3.0.0.
Add this line to your application's Gemfile, just after the one related to Liquid.
gem 'liquid-template-inheritance'
And then execute:
$ bundle install
- Fork it ( http://github.com//locomotivecms/liquid-template-inheritance )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request