Skip to content

Instantly share code, notes, and snippets.

@pobo380
Created May 23, 2012 06:29
Show Gist options
  • Save pobo380/2773541 to your computer and use it in GitHub Desktop.
Save pobo380/2773541 to your computer and use it in GitHub Desktop.
#1 TOPページ
# coding: utf-8
require 'rubygems'
require 'sinatra'
## TOP
get '/' do
erb :index
end
__END__
@@ layout
<html>
<head>
<title>My Blog</title>
</head>
<body>
<%= yield %>
</body>
</html>
@@ index
<h1>pobo380 on a leash.</h1>
<p>私のブログです</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment