Skip to content

Instantly share code, notes, and snippets.

@lfborjas
Created October 5, 2010 03:46
Show Gist options
  • Save lfborjas/610949 to your computer and use it in GitHub Desktop.
Save lfborjas/610949 to your computer and use it in GitHub Desktop.
Progra4: El ejemplo básico de la clase del 5 de octubre de 2010
require 'sinatra'
get '/' do
"¡hola mundo!"
end
get '/agua' do
send_file "hola.html"
end
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8" />
<style>
#container {
margin: 0 auto;
width: 700px;
}
body{
font-family: Courier, monospace;
text-align: center;
}
</style>
</head>
<body>
<div id="container">
<h1>¡Hola mundo!</h1>
<img src="http://funpics.classicfun.ws/var/resizes/Funpics/Excuse%20me%20-%20I%20was%20looking%20at%20the%20water.jpg?m=1280065278" alt="Algo importante"></img>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment