Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module LiquidTemplatingHelper
- def liquidize(content, args)
- Liquid::Template.parse(content).render(args, :filters => [LiquidFilters])
- end
- def liquidize_snippets(snippettable)
- text = ""
- snippettable.scheme.snippets.each do |snippet|
- s = div_for(snippet) { liquidize(snippet.content, 'object' => snippettable, 'images' => current_site.images.all) }
- text << s
- end
- text
- end
- end
Add Comment
Please, Sign In to add comment