Nested_liquid is a project mainly written in Ruby, based on the MIT license.
Allows you to bypass liquids sanity checks on method calls for particular namespaces as well and render the liquid templates recursively.
= nested_liquid
Allows you to bypass liquids sanity checks on method calls for particular namespaces as well and render the liquid templates recursively.
== Installation
gem install nested_liquid
== Usage
You have to set the allowed namespaces. In the example below I set the allowed namespace to 'address'. (Note: If you're on a rails app, set this in an initializer)
Liquid.allowd_namespaces = "address"
Now your liquid templates can have code like the following, without error
{{person.address.combined}}
And as a bonus the liquid templates can return additional liquid templates and they will be parsed recursively until the liquid context limit (currently 100) is hit.
== contributing to nested_liquid
== Copyright
Copyright (c) 2010 Mark Turner & G5 Search Marketing Inc. See LICENSE.txt for further details.