Sha256: ee61cadce14297bf7f8210883139f3229a64f1f15bf789eead888425bbd495b6
Contents?: true
Size: 510 Bytes
Versions: 8
Compression:
Stored size: 510 Bytes
Contents
module ComponentHelper def add_option(option, output = nil) return unless option return output if output option end def markdown(text) return unless text Redcarpet::Markdown.new(Redcarpet::Render::HTML).render(text).html_safe end def markdown_help_url "http://nestacms.com/docs/creating-content/markdown-cheat-sheet" end def render_children(children) return children unless children.present? && children.is_a?(Array) children.map(&:render).reduce(:+) end end
Version data entries
8 entries across 8 versions & 1 rubygems