Skip to content

Instantly share code, notes, and snippets.

@migrs
Created September 26, 2012 13:53
Show Gist options
  • Save migrs/3788185 to your computer and use it in GitHub Desktop.
Save migrs/3788185 to your computer and use it in GitHub Desktop.
rack-server-page layout sample
require 'rack-server-pages'
require 'tilt'
run Rack::ServerPages.new { |config|
config.before do
layout('public/_layout.html')
end
}
<html>
<head>
<title>layout test</title>
</head>
<body>
<%=yield%>
</body>
</head>

hello layout

  • hogehoge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment