Module: Pubba::HTML::Helpers

Defined in:
lib/pubba/html/helpers.rb

Instance Method Summary collapse

Instance Method Details

#digest_url(url) ⇒ Object



12
13
14
# File 'lib/pubba/html/helpers.rb', line 12

def digest_url(url)
  url.start_with?('http') ? url : Pubba.asset_host[::Statica.digest_url(url)]
end

#page_body_tagsObject



8
9
10
# File 'lib/pubba/html/helpers.rb', line 8

def page_body_tags
  process_tags(@page.body_tags)
end

#page_head_tagsObject



4
5
6
# File 'lib/pubba/html/helpers.rb', line 4

def page_head_tags
  process_tags(@page.head_tags)
end