Sha256: 24c083cb838f98a042d273424f4550d822aab3ed55849e4918ecb3c0bd8a4493
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
module Rooler module ApplicationHelper def liquidize(content, arguments) Liquid::Template.parse(content).render(arguments, :filters => [Rooler::LiquidFilters]).html_safe end def print_tree(tree) content_tag :ul do content_tag :li, tree.name tree.children { |child| print_tree(child) if child } # Child might be 'nil' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rooler-0.0.5 | app/helpers/rooler/application_helper.rb |