search for: liquid_snippets

Displaying 1 result from an estimated 1 matches for "liquid_snippets".

2010 Dec 21
0
liquid include error please help
...<% file_system = Liquid::LocalFileSystem.new("/page/") full_file_path = file_system.full_path("test") Liquid::Template.file_system = Liquid::LocalFileSystem.new(full_file_path) %> <%@template = Liquid::Template.parse(@page) %> <%= raw @template.render(@liquid_snippets) %> So let me explain above code, I have a liquid partial at /app/views/page/_test.liquid @page contains the code from the database and it includes the following tag {% include ''test'' %} @liquid_snippets is a hash map which has other liquid variables Ex : ''name...