Created
October 5, 2010 03:46
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
get '/' do | |
"¡hola mundo!" | |
end | |
get '/agua' do | |
send_file "hola.html" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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