rack-server-pages 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +9 -0
- data/README.md +2 -3
- data/lib/rack/server_pages.rb +1 -2
- data/lib/rack-server-pages/version.rb +1 -1
- data/rack-server-pages.gemspec +3 -6
- metadata +6 -60
- data/.github/workflows/lint.yml +0 -15
- data/.github/workflows/test.yml +0 -37
- data/.gitignore +0 -11
- data/.rspec +0 -2
- data/.rubocop.yml +0 -10
- data/.rubocop_todo.yml +0 -372
- data/Gemfile +0 -46
- data/Guardfile +0 -16
- data/Rakefile +0 -12
- data/config.ru +0 -49
- data/public/CHANGES.erb +0 -3
- data/public/README.erb +0 -3
- data/public/_layout.html.erb +0 -9
- data/public/folder/sample.erb +0 -14
- data/public/folder/special-sub.folder-@/sample.erb +0 -14
- data/public/folder/subfolder/(sub-folder)/sample-in-sub-folder.extension.erb +0 -14
- data/public/folder/subfolder/sample.erb +0 -14
- data/public/folder//320/277/320/276-/321/200/321/203/321/201/321/201/320/272/320/270//320/277/321/200/320/270/320/274/320/265/321/200.erb +0 -14
- data/public/index.html +0 -23
- data/public/info.php +0 -89
- data/public/rack_logo.png +0 -0
- data/public/rack_logo@2x.png +0 -0
- data/public/sample.erb +0 -14
- data/public/style.css.sass +0 -99
- data/views/about.html.slim +0 -11
- data/views/article.html.md +0 -16
- data/views/betty.css.sass +0 -11
- data/views/contact.xml.builder +0 -5
- data/views/examples/_layout.html.erb +0 -14
- data/views/examples/_time.html.erb +0 -4
- data/views/examples/builder.xml.builder +0 -2
- data/views/examples/coffee.js.coffee +0 -0
- data/views/examples/erb.html.erb +0 -2
- data/views/examples/haml.html.haml +0 -6
- data/views/examples/html.html +0 -1
- data/views/examples/index.html.erb +0 -9
- data/views/examples/less.css.less +0 -0
- data/views/examples/liquid.html.liquid +0 -0
- data/views/examples/markaby.html.mab +0 -0
- data/views/examples/markdown.html.markdown +0 -6
- data/views/examples/nokogiri.xml.nokogiri +0 -1
- data/views/examples/radius.html.radius +0 -0
- data/views/examples/rdoc.html.rdoc +0 -0
- data/views/examples/robots.txt +0 -1
- data/views/examples/sass.css.sass +0 -11
- data/views/examples/scss.css.scss +0 -0
- data/views/examples/slim.html.slim +0 -2
- data/views/examples/source.html.slim +0 -9
- data/views/examples/textile.html.textile +0 -0
- data/views/examples/wiki.html.wiki +0 -0
- data/views/examples/yajl.json.yajl +0 -0
- data/views/script.js.coffee +0 -13
data/Gemfile
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gemspec
|
4
|
-
|
5
|
-
gem 'rack', ENV['RACK_VERSION'] || '~> 3'
|
6
|
-
|
7
|
-
group :development, :test do
|
8
|
-
gem 'builder'
|
9
|
-
gem 'markaby'
|
10
|
-
gem 'rake'
|
11
|
-
gem 'rubocop', '1.67.0'
|
12
|
-
gem 'rubocop-capybara'
|
13
|
-
gem 'rubocop-rake'
|
14
|
-
gem 'rubocop-rspec'
|
15
|
-
gem 'simplecov'
|
16
|
-
gem 'rack-test', require: 'rack/test'
|
17
|
-
gem 'rspec'
|
18
|
-
gem 'rspec-its'
|
19
|
-
gem 'slim'
|
20
|
-
gem 'sass'
|
21
|
-
gem 'tapp'
|
22
|
-
gem 'tilt', '>=2.0'
|
23
|
-
gem 'RedCloth'
|
24
|
-
gem 'bluecloth'
|
25
|
-
gem 'coffee-script'
|
26
|
-
gem 'contest'
|
27
|
-
gem 'creole'
|
28
|
-
gem 'erubis'
|
29
|
-
gem 'haml'
|
30
|
-
gem 'kramdown'
|
31
|
-
# gem 'less'
|
32
|
-
gem 'liquid'
|
33
|
-
gem 'maruku'
|
34
|
-
gem 'nokogiri'
|
35
|
-
gem 'psych', '~> 3.0'
|
36
|
-
gem 'rackup'
|
37
|
-
gem 'radius'
|
38
|
-
gem 'rdiscount'
|
39
|
-
gem 'rdoc'
|
40
|
-
# gem 'wikicloth'
|
41
|
-
gem 'yajl-ruby'
|
42
|
-
gem 'capybara'
|
43
|
-
gem 'selenium-webdriver', '~> 4'
|
44
|
-
# gem 'therubyracer'
|
45
|
-
gem 'webrick'
|
46
|
-
end
|
data/Guardfile
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# A sample Guardfile
|
2
|
-
# More info at https://github.com/guard/guard#readme
|
3
|
-
group 'backend' do
|
4
|
-
guard 'bundler' do
|
5
|
-
watch('Gemfile')
|
6
|
-
# Uncomment next line if Gemfile contain `gemspec' command
|
7
|
-
# watch(/^.+\.gemspec/)
|
8
|
-
end
|
9
|
-
guard 'rspec', cli: '--color --format nested', bundler: true do
|
10
|
-
watch(%r{^lib/([\w/]+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
11
|
-
|
12
|
-
watch(%r{^spec/(.+)\_spec.rb}) { |m| "spec/#{m[1]}_spec.rb" }
|
13
|
-
|
14
|
-
watch('spec/spec_helper.rb') { 'bundle exec rake spec' }
|
15
|
-
end
|
16
|
-
end
|
data/Rakefile
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'rake'
|
3
|
-
require 'bundler/gem_tasks'
|
4
|
-
require 'rspec/core/rake_task'
|
5
|
-
|
6
|
-
desc 'Run all specs in spec directory'
|
7
|
-
RSpec::Core::RakeTask.new :spec
|
8
|
-
|
9
|
-
require 'rubocop/rake_task'
|
10
|
-
RuboCop::RakeTask.new
|
11
|
-
|
12
|
-
task default: [:rubocop, :spec]
|
data/config.ru
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
require 'bundler/setup'
|
3
|
-
$LOAD_PATH.unshift File.dirname(__FILE__) + '/lib'
|
4
|
-
require 'rack-server-pages'
|
5
|
-
|
6
|
-
# Tilt settings
|
7
|
-
require 'tilt'
|
8
|
-
require 'slim'
|
9
|
-
|
10
|
-
# .php as ERB template :)
|
11
|
-
Rack::ServerPages::Template::ERBTemplate.extensions << 'php' # ERBTemplate
|
12
|
-
# Rack::ServerPages::Template.use_tilt false
|
13
|
-
Tilt.register Tilt::ERBTemplate, 'php' # TiltTemplate
|
14
|
-
|
15
|
-
module SampleHelper
|
16
|
-
def before
|
17
|
-
@sample1 = 'sample1'
|
18
|
-
end
|
19
|
-
|
20
|
-
def sample5
|
21
|
-
'sample5'
|
22
|
-
end
|
23
|
-
|
24
|
-
def after
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
run Rack::ServerPages.new { |config|
|
29
|
-
# config.show_exceptions = false
|
30
|
-
|
31
|
-
config.on_error do
|
32
|
-
response.body = ['Error!']
|
33
|
-
end
|
34
|
-
|
35
|
-
config.helpers SampleHelper
|
36
|
-
config.helpers do
|
37
|
-
def sample4
|
38
|
-
'sample4'
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
config.before do
|
43
|
-
@sample2 = 'sample2'
|
44
|
-
|
45
|
-
def sample3
|
46
|
-
'sample3'
|
47
|
-
end
|
48
|
-
end
|
49
|
-
}
|
data/public/CHANGES.erb
DELETED
data/public/README.erb
DELETED
data/public/_layout.html.erb
DELETED
data/public/folder/sample.erb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
<h1>Hello <%=h(params["name"] || "Rack")%>!!</h1>
|
2
|
-
<p>Current Time: <%= Time.now %></p>
|
3
|
-
What's your name?:
|
4
|
-
<form>
|
5
|
-
<input type="text" name="name" value="<%=h params["name"]%>" />
|
6
|
-
<input type="submit" />
|
7
|
-
</form>
|
8
|
-
<%= partial 'views/examples/_time.html', :a => 'PartA', :b => 'PartB' %>
|
9
|
-
|
10
|
-
<%= @sample1 %>
|
11
|
-
<%= @sample2 %>
|
12
|
-
<%= sample3 %>
|
13
|
-
<%= sample4 %>
|
14
|
-
<%= sample5 %>
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<h1>Hello <%=h(params["name"] || "Rack")%>!!</h1>
|
2
|
-
<p>Current Time: <%= Time.now %></p>
|
3
|
-
What's your name?:
|
4
|
-
<form>
|
5
|
-
<input type="text" name="name" value="<%=h params["name"]%>" />
|
6
|
-
<input type="submit" />
|
7
|
-
</form>
|
8
|
-
<%= partial 'views/examples/_time.html', :a => 'PartA', :b => 'PartB' %>
|
9
|
-
|
10
|
-
<%= @sample1 %>
|
11
|
-
<%= @sample2 %>
|
12
|
-
<%= sample3 %>
|
13
|
-
<%= sample4 %>
|
14
|
-
<%= sample5 %>
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<h1>Hello <%=h(params["name"] || "Rack")%>!!</h1>
|
2
|
-
<p>Current Time: <%= Time.now %></p>
|
3
|
-
What's your name?:
|
4
|
-
<form>
|
5
|
-
<input type="text" name="name" value="<%=h params["name"]%>" />
|
6
|
-
<input type="submit" />
|
7
|
-
</form>
|
8
|
-
<%= partial 'views/examples/_time.html', :a => 'PartA', :b => 'PartB' %>
|
9
|
-
|
10
|
-
<%= @sample1 %>
|
11
|
-
<%= @sample2 %>
|
12
|
-
<%= sample3 %>
|
13
|
-
<%= sample4 %>
|
14
|
-
<%= sample5 %>
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<h1>Hello <%=h(params["name"] || "Rack")%>!!</h1>
|
2
|
-
<p>Current Time: <%= Time.now %></p>
|
3
|
-
What's your name?:
|
4
|
-
<form>
|
5
|
-
<input type="text" name="name" value="<%=h params["name"]%>" />
|
6
|
-
<input type="submit" />
|
7
|
-
</form>
|
8
|
-
<%= partial 'views/examples/_time.html', :a => 'PartA', :b => 'PartB' %>
|
9
|
-
|
10
|
-
<%= @sample1 %>
|
11
|
-
<%= @sample2 %>
|
12
|
-
<%= sample3 %>
|
13
|
-
<%= sample4 %>
|
14
|
-
<%= sample5 %>
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<h1>Hello <%=h(params["name"] || "Rack")%>!!</h1>
|
2
|
-
<p>Current Time: <%= Time.now %></p>
|
3
|
-
Как вас зовут?:
|
4
|
-
<form>
|
5
|
-
<input type="text" name="name" value="<%=h params["name"]%>" />
|
6
|
-
<input type="submit" />
|
7
|
-
</form>
|
8
|
-
<%= partial 'views/examples/_time.html', :a => 'PartA', :b => 'PartB' %>
|
9
|
-
|
10
|
-
<%= @sample1 %>
|
11
|
-
<%= @sample2 %>
|
12
|
-
<%= sample3 %>
|
13
|
-
<%= sample4 %>
|
14
|
-
<%= sample5 %>
|
data/public/index.html
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<title>rack-server-pages</title>
|
4
|
-
<link href="style.css" media="screen" rel="stylesheet" type="text/css" />
|
5
|
-
</head>
|
6
|
-
<body>
|
7
|
-
<h1>rack-server-pages</h1>
|
8
|
-
<ul>
|
9
|
-
<li><a href="examples/">Tilt examples</a></li>
|
10
|
-
<li><a href="sample">sample</a></li>
|
11
|
-
<li><a href="sample.erb">sample.erb</a></li>
|
12
|
-
<li><a href="folder/sample.erb">folder/sample.erb</a></li>
|
13
|
-
<li><a href="folder/subfolder/sample.erb">folder/subfolder/sample.erb</a></li>
|
14
|
-
<li><a href="folder/special-sub.folder-@/sample.erb">folder/special-sub.folder-@/sample.erb</a></li>
|
15
|
-
<li><a href="folder/по-русски/пример.erb">folder/по-русски/пример.erb</a></li>
|
16
|
-
<li><a href="folder/subfolder/(sub-folder)/sample-in-sub-folder.extension.erb">folder/subfolder/(sub-folder)/sample-in-sub-folder.extension.erb</a></li>
|
17
|
-
<li><a href="info">info.php</a></li>
|
18
|
-
<li><a href="README">README</a></li>
|
19
|
-
<li><a href="CHANGES">CHANGES</a></li>
|
20
|
-
</ul>
|
21
|
-
<a href="http://github.com/migrs/rack-server-pages">github</a>
|
22
|
-
</body>
|
23
|
-
</html>
|
data/public/info.php
DELETED
@@ -1,89 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<style type="text/css">
|
4
|
-
<!--
|
5
|
-
body {background-color: #ffffff; color: #000000;}
|
6
|
-
body, td, th, h1, h2 {font-family: sans-serif;}
|
7
|
-
pre {margin: 0px; font-family: monospace;}
|
8
|
-
a:hover {text-decoration: underline;}
|
9
|
-
table {border-collapse: collapse;}
|
10
|
-
.center {text-align: center;}
|
11
|
-
.center table { margin-left: auto; margin-right: auto; text-align: left;}
|
12
|
-
.center th { text-align: center !important; }
|
13
|
-
td, th { border: 1px solid #000000; font-size: 75%; vertical-align: baseline;}
|
14
|
-
h1 {font-size: 150%;}
|
15
|
-
h2 {font-size: 125%;}
|
16
|
-
.p {text-align: left;}
|
17
|
-
.e {background-color: #ccccff; font-weight: bold; color: #000000;}
|
18
|
-
.h {background-color: #9999cc; font-weight: bold; color: #000000;}
|
19
|
-
.v {background-color: #cccccc; color: #000000;}
|
20
|
-
i {color: #666666; background-color: #cccccc;}
|
21
|
-
img {float: right; border: 0px;}
|
22
|
-
hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color: #000000;}
|
23
|
-
//-->
|
24
|
-
</style>
|
25
|
-
<title>rubyinfo()</title>
|
26
|
-
</head>
|
27
|
-
<body>
|
28
|
-
<div class="center">
|
29
|
-
<table border="0" cellpadding="3" width="600">
|
30
|
-
<tr class="h">
|
31
|
-
<td>
|
32
|
-
<h1 class="p">Rack Server Pages Version <%= Rack::ServerPages::VERSION%></h1>
|
33
|
-
</td>
|
34
|
-
</tr>
|
35
|
-
</table>
|
36
|
-
<br />
|
37
|
-
<h2>Rack Environment</h2>
|
38
|
-
<table border="0" cellpadding="3" width="600">
|
39
|
-
<tr class="h"><th>Variable</th><th>Value</th></tr>
|
40
|
-
<% for key, value in env do %>
|
41
|
-
<tr><td class="e"><%= key %></td><td class="v"><%= value %></td></tr>
|
42
|
-
<% end %>
|
43
|
-
</table>
|
44
|
-
<h2>Ruby</h2>
|
45
|
-
<table border="0" cellpadding="3" width="600">
|
46
|
-
<tr><td class="e">RUBY_VERSION</td><td class="v"><%= RUBY_VERSION %></td></tr>
|
47
|
-
<tr><td class="e">RUBY_PATCHLEVEL</td><td class="v"><%= RUBY_PATCHLEVEL %></td></tr>
|
48
|
-
<tr><td class="e">RUBY_RELEASE_DATE</td><td class="v"><%= RUBY_RELEASE_DATE %></td></tr>
|
49
|
-
<tr><td class="e">RUBY_PLATFORM</td><td class="v"><%= RUBY_PLATFORM %></td></tr>
|
50
|
-
</table>
|
51
|
-
<h2>Environment</h2>
|
52
|
-
<table border="0" cellpadding="3" width="600">
|
53
|
-
<tr class="h"><th>Variable</th><th>Value</th></tr>
|
54
|
-
<% for key, value in ENV do %>
|
55
|
-
<tr><td class="e"><%= key %></td><td class="v"><%= value %></td></tr>
|
56
|
-
<% end %>
|
57
|
-
</table>
|
58
|
-
<% if defined?(Tilt) %>
|
59
|
-
<h2>Tilt</h2>
|
60
|
-
<table border="0" cellpadding="3" width="600">
|
61
|
-
<% for key, value in (Tilt.respond_to?(:mappings) ? Tilt.mappings : Tilt.lazy_map) do %>
|
62
|
-
<tr><td class="e"><%= key %></td><td class="v"><%= value %></td></tr>
|
63
|
-
<% end %>
|
64
|
-
</table>
|
65
|
-
<% else %>
|
66
|
-
<h2>ERB Template</h2>
|
67
|
-
<table border="0" cellpadding="3" width="600">
|
68
|
-
<tr><td class="e">extensions</td><td class="v"><%=Rack::ServerPages::Template::ERBTemplate.extensions.join(', ')%></td></tr>
|
69
|
-
</table>
|
70
|
-
<% end %>
|
71
|
-
<h2>Binding</h2>
|
72
|
-
<table border="0" cellpadding="3" width="600">
|
73
|
-
<tr><td class="e">variables</td><td class="v"><%= (instance_variables).join(', ') %></td></tr>
|
74
|
-
<tr><td class="e">methods</td><td class="v"><%= (methods - Object.methods).join(', ') %></td></tr>
|
75
|
-
</table>
|
76
|
-
<h2>License</h2>
|
77
|
-
<table border="0" cellpadding="3" width="600">
|
78
|
-
<tr class="v">
|
79
|
-
<td>
|
80
|
-
<p>
|
81
|
-
<a href="http://github.com/migrs/rack-server-pages">rack-server-pages</a> is Copyright (c) 2012 <a href="http://github.com/migrs">Masato Igarashi</a>(@<a href="http://twitter.com/migrs">migrs</a>) and distributed under the <a href="http://www.opensource.org/licenses/mit-license">MIT license</a>.
|
82
|
-
</p>
|
83
|
-
</td>
|
84
|
-
</tr>
|
85
|
-
</table>
|
86
|
-
<br />
|
87
|
-
</div>
|
88
|
-
</body>
|
89
|
-
</html>
|
data/public/rack_logo.png
DELETED
Binary file
|
data/public/rack_logo@2x.png
DELETED
Binary file
|
data/public/sample.erb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
<h1>Hello <%=h(params["name"] || "Rack")%>!!</h1>
|
2
|
-
<p>Current Time: <%= Time.now %></p>
|
3
|
-
What's your name?:
|
4
|
-
<form>
|
5
|
-
<input type="text" name="name" value="<%=h params["name"]%>" />
|
6
|
-
<input type="submit" />
|
7
|
-
</form>
|
8
|
-
<%= partial 'views/examples/_time.html', :a => 'PartA', :b => 'PartB' %>
|
9
|
-
|
10
|
-
<%= @sample1 %>
|
11
|
-
<%= @sample2 %>
|
12
|
-
<%= sample3 %>
|
13
|
-
<%= sample4 %>
|
14
|
-
<%= sample5 %>
|
data/public/style.css.sass
DELETED
@@ -1,99 +0,0 @@
|
|
1
|
-
body
|
2
|
-
margin: 0 auto
|
3
|
-
font-family: Georgia, Palatino, serif
|
4
|
-
color: #444444
|
5
|
-
line-height: 1
|
6
|
-
max-width: 960px
|
7
|
-
padding: 30px
|
8
|
-
|
9
|
-
h1, h2, h3, h4
|
10
|
-
color: #111111
|
11
|
-
font-weight: 400
|
12
|
-
|
13
|
-
h1, h2, h3, h4, h5, p
|
14
|
-
margin-bottom: 24px
|
15
|
-
padding: 0
|
16
|
-
|
17
|
-
h1
|
18
|
-
font-size: 48px
|
19
|
-
|
20
|
-
h2
|
21
|
-
font-size: 36px
|
22
|
-
margin: 24px 0 6px
|
23
|
-
|
24
|
-
h3
|
25
|
-
font-size: 24px
|
26
|
-
|
27
|
-
h4
|
28
|
-
font-size: 21px
|
29
|
-
|
30
|
-
h5
|
31
|
-
font-size: 18px
|
32
|
-
|
33
|
-
a
|
34
|
-
color: #0099ff
|
35
|
-
margin: 0
|
36
|
-
padding: 0
|
37
|
-
vertical-align: baseline
|
38
|
-
&:hover
|
39
|
-
text-decoration: none
|
40
|
-
color: #ff6600
|
41
|
-
&:visited
|
42
|
-
color: purple
|
43
|
-
|
44
|
-
//ul, ol {
|
45
|
-
// padding: 0;
|
46
|
-
// margin: 0;
|
47
|
-
//}
|
48
|
-
|
49
|
-
li
|
50
|
-
line-height: 24px
|
51
|
-
ul
|
52
|
-
margin-left: 24px
|
53
|
-
|
54
|
-
p, ul, ol
|
55
|
-
font-size: 16px
|
56
|
-
line-height: 24px
|
57
|
-
//max-width: 540px;
|
58
|
-
|
59
|
-
pre
|
60
|
-
padding: 5px 10px
|
61
|
-
max-width: 800px
|
62
|
-
white-space: pre-wrap
|
63
|
-
background-color: #eee
|
64
|
-
|
65
|
-
code
|
66
|
-
font-family: Consolas, Monaco, Andale Mono, monospace
|
67
|
-
line-height: 1.5
|
68
|
-
font-size: 13px
|
69
|
-
background-color: #eee
|
70
|
-
|
71
|
-
p
|
72
|
-
padding: 2px
|
73
|
-
margin: 2px
|
74
|
-
|
75
|
-
aside
|
76
|
-
display: block
|
77
|
-
float: right
|
78
|
-
width: 390px
|
79
|
-
|
80
|
-
blockquote
|
81
|
-
border-left: .5em solid #eee
|
82
|
-
padding: 0 2em
|
83
|
-
margin-left: 0
|
84
|
-
max-width: 476px
|
85
|
-
cite
|
86
|
-
font-size: 14px
|
87
|
-
line-height: 20px
|
88
|
-
color: #bfbfbf
|
89
|
-
cite:before
|
90
|
-
content: '\2014 \00A0'
|
91
|
-
p
|
92
|
-
color: #666
|
93
|
-
max-width: 460px
|
94
|
-
|
95
|
-
hr
|
96
|
-
width: 540px
|
97
|
-
text-align: left
|
98
|
-
margin: 0 auto 0 0
|
99
|
-
color: #999
|
data/views/about.html.slim
DELETED
data/views/article.html.md
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
A First Level Header
|
2
|
-
====================
|
3
|
-
|
4
|
-
A Second Level Header
|
5
|
-
---------------------
|
6
|
-
|
7
|
-
Now is the time for all good men to come to
|
8
|
-
the aid of their country. This is just a
|
9
|
-
regular paragraph.
|
10
|
-
|
11
|
-
### Header 3
|
12
|
-
|
13
|
-
> This is a blockquote.
|
14
|
-
> Thank you
|
15
|
-
|
16
|
-
[source](http://github.com/migrs/rack-server-pages)
|
data/views/betty.css.sass
DELETED
data/views/contact.xml.builder
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<title>rack-server-pages Tilt examples</title>
|
4
|
-
<link href="<%=url("/style.css")%>" media="screen" rel="stylesheet" type="text/css" />
|
5
|
-
</head>
|
6
|
-
<body>
|
7
|
-
<h1>rack-server-pages examples</h1>
|
8
|
-
<%= partial 'views/examples/_time.html' %>
|
9
|
-
<%= yield if block_given? %>
|
10
|
-
<% unless request.path =~ %r!/examples/(index(\.html)?)?$! %>
|
11
|
-
<a href="<%=url('/examples/')%>">List examples</a>
|
12
|
-
<% end %>
|
13
|
-
</body>
|
14
|
-
</html>
|
File without changes
|
data/views/examples/erb.html.erb
DELETED
data/views/examples/html.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
<h1>Hello html!</h1>
|
File without changes
|
File without changes
|
File without changes
|
@@ -1 +0,0 @@
|
|
1
|
-
xml.root
|
File without changes
|
File without changes
|
data/views/examples/robots.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Deny *
|
File without changes
|
@@ -1,9 +0,0 @@
|
|
1
|
-
ruby:
|
2
|
-
layout 'views/examples/_layout.html'
|
3
|
-
src = params['src'] ? params['src'][/(\w+\.)?(\w+)$/, 0] : "source.html"
|
4
|
-
h2 source
|
5
|
-
code = file = Dir["views/examples/#{src}.*"].first
|
6
|
-
pre style="background-color:#122831;color:#B3B3B3;padding:1em;" =IO.read(file)
|
7
|
-
a href=(u=url("/examples/#{src}")) = u
|
8
|
-
iframe src=u width="100%"
|
9
|
-
|
File without changes
|
File without changes
|
File without changes
|