Sha256: 974826957353fe1303c4963ef58dff390d4a6953b7aa5d723ee8a5d490d938a5
Contents?: true
Size: 499 Bytes
Versions: 4
Compression:
Stored size: 499 Bytes
Contents
module Helpers def format_author(author) parts = [] parts << author[:name] if author[:name] parts << "<a href=\"mailto:#{author[:email]}\">#{author[:email]}</a>" if author[:email] if author[:website] and author[:company] parts << "<a href=\"#{author[:website]}\">#{author[:company]}</a>" elsif author[:company] parts << author[:company] end parts.join(', ') end def format_header(header) "#{header[0,1].upcase}#{header[1..-1].downcase}" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
saga-0.4.0 | templates/default/helpers.rb |
saga-0.3.0 | templates/default/helpers.rb |
saga-0.2.0 | templates/default/helpers.rb |
saga-0.1.0 | templates/default/helpers.rb |