class Sinatra::Cl::Files::LayoutNoBs

Public Class Methods

build(app_name) click to toggle source
# File lib/files/no-bootstrap/layout_no_bs.rb, line 5
        def self.build(app_name)
          File.open("#{app_name}/views/layout.erb", "w+") { |io|
            io << <<-END
<!doctype html>
<html>
  <head>
  </head>
  <body>
    <%= yield %>
  </body>
</html>
            END
          }
        end