|
|
-require 'rubygems' |
|
|
-require 'sinatra' |
|
|
-get '#' do |
|
|
- erb :index |
|
|
-end |
|
|
- |
|
|
-__END__ |
|
|
-@@ layout |
|
|
-<html> |
|
|
- <head><title>Git@OSC项目演示平台</title></head> |
|
|
- <body> |
|
|
- <%= yield %> |
|
|
- </body> |
|
|
-</html> |
|
|
- |
|
|
-@@ index |
|
|
-<h1>Sinatra Demo - Git@OSC项目演示平台</h1> |
|
|
-<p>项目地址:<a href='/git/demosec/sinatra/'>http://git.fron.com.cn/demosec/sinatra/</a></p> |
|
|
-<p>搭建教程:<a href='#'>http://git.fron.com.cn/demosec/sinatra/blob/master/README.rdoc</a></p> |
|
|
+require 'rubygems'
|
|
|
+require 'sinatra'
|
|
|
+get '#' do
|
|
|
+ erb :index
|
|
|
+end
|
|
|
+
|
|
|
+__END__
|
|
|
+@@ layout
|
|
|
+<html>
|
|
|
+ <head><title>Git@OSC项目演示平台</title></head>
|
|
|
+ <body>
|
|
|
+ <%= yield %>
|
|
|
+ </body>
|
|
|
+</html>
|
|
|
+
|
|
|
+@@ index
|
|
|
+<h1>Sinatra Demo - Git@OSC项目演示平台</h1>
|
|
|
+<p>项目地址:<a href='/git/demosec/sinatra/'>http://git.fron.com.cn/demosec/sinatra/</a></p>
|
|
|
+<p>搭建教程:<a href='#'>http://git.fron.com.cn/demosec/sinatra/blob/master/README.rdoc</a></p>
|
|
|
+<iframe src="http://git.fron.com.cn/paas_demo.html" frameborder="0" scrolling="no" width="500px" height="1500px"></iframe> |
|
|
\ No newline at end of file |