Sha256: 2048ecf564e163abdede5886320950ae4b9ddd7433a0c862a674210d62d84f11
Contents?: true
Size: 518 Bytes
Versions: 3
Compression:
Stored size: 518 Bytes
Contents
module BlockHelper def blocktoc(*args) partial :blocktoc, { :blocks => args } end def block(name) haml_concat(partial(:blockheader, { :name => name })) haml_concat("<div id=\"block-#{name.to_s}\" class=\"blockcontainer\">") yield haml_concat('</div>') end def blocks(*args) ret = blocktoc(*args) args.each do |block| if block_given? ret += yield(partial(block)) else ret += partial(block) end end ret end end self.extend BlockHelper
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
gitstats-rb-2.0.0 | template/gnuplot/helpers/block.rb |
gitstats-ruby-1.0.1 | template/helpers/block.rb |
gitstats-ruby-1.0.0 | template/helpers/block.rb |