class Views::Base < Erector::Widget def content rawtext '' html { head { link href: '//fonts.googleapis.com/css?family=Open+Sans:400,300,700,600', rel: 'stylesheet', type: 'text/css' stylesheet_link_tag 'application', media: 'all' style(type: 'text/css') { rawtext %{ body { padding: 0 1rem 1rem; background: white; } .section_header { font-size: 1.6rem; padding: 1rem 0 0.25rem; margin-bottom: 1rem; border-bottom: 1px solid #eee; } } } } body { main script src: '//code.jquery.com/jquery-1.11.1.min.js' javascript_include_tag 'application' script %{ $('[data-toggle="tooltip"]').tooltip() }.html_safe } } end private def docs(name, &block) div.section_header name, id: name.downcase yield end end