Sha256: b4d25b252cf9426442bdcaa8b9d130235f4d77be85a3c4a30389fc986ac22745
Contents?: true
Size: 363 Bytes
Versions: 1
Compression:
Stored size: 363 Bytes
Contents
module PublicHelper def title(page_title, show_title = true) content_for(:title) { h(page_title.to_s) } @show_title = show_title end def show_title? @show_title end def stylesheet(*args) content_for(:head) { stylesheet_link_tag(*args) } end def javascript(*args) content_for(:head) { javascript_include_tag(*args) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datalab-generators-0.1.0 | lib/generators/datalab/layout/templates/public_helper.rb |