Sha256: 356d9198c3024b92ca47a04f45e5b9c36d4892bbd8a39ef8c610b80f0f59790e
Contents?: true
Size: 852 Bytes
Versions: 15
Compression:
Stored size: 852 Bytes
Contents
format :css do def get_inclusion_defaults nested_card { :view => :raw } end def show view, args view ||= :content render view, args end view :titled do |args| major_comment( %{ Style Card: "#{ card.name }" } ) + _render_core( args ) end view :content do |args| _render_core( args ) end view :missing do |args| major_comment "MISSING Style Card: #{card.name}" end view :import do |args| %{\n@import url("#{ _render_url :item=>:import }");\n} end view :url, :perms=>:none do |args| page_path card.cardname, :format=>:css, :item=>args[:item] # card_url _render_linkname end def major_comment comment, char='-' edge = %{/* #{ char * ( comment.length+4 ) } */} main = %{/* #{ char } #{ comment } #{ char } */} "#{edge}\n#{main}\n#{edge}\n\n" end end
Version data entries
15 entries across 15 versions & 1 rubygems