erbside 0.2.1 → 0.3.0

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.
Files changed (46) hide show
  1. data/.ruby +28 -31
  2. data/HISTORY.rdoc +12 -0
  3. data/QED.rdoc +353 -0
  4. data/README.rdoc +8 -4
  5. data/lib/erbside.yml +28 -31
  6. data/lib/erbside/metadata.rb +2 -4
  7. data/qed/00_intro.rdoc +1 -0
  8. metadata +67 -105
  9. data/.gemspec +0 -152
  10. data/.gitignore +0 -8
  11. data/MANIFEST +0 -34
  12. data/PROFILE +0 -33
  13. data/VERSION +0 -1
  14. data/main.assembly +0 -57
  15. data/site/.htaccess +0 -2
  16. data/site/.rsync-filter +0 -7
  17. data/site/assets/css/highlight.css +0 -96
  18. data/site/assets/css/reset.css +0 -19
  19. data/site/assets/css/site.css +0 -52
  20. data/site/assets/img/curb.jpg +0 -0
  21. data/site/assets/img/emeraled.png +0 -0
  22. data/site/assets/img/fade.png +0 -0
  23. data/site/assets/img/fork-me.png +0 -0
  24. data/site/assets/img/icon.jpg +0 -0
  25. data/site/assets/js/highlight.js +0 -1
  26. data/site/assets/js/jquery.js +0 -19
  27. data/site/assets/js/jquery.tabs.js +0 -1
  28. data/site/index.html +0 -229
  29. data/work/defunct/css/color.css +0 -45
  30. data/work/defunct/css/font.css +0 -39
  31. data/work/defunct/css/struct.css +0 -51
  32. data/work/defunct/inline-old/bash.rb +0 -36
  33. data/work/defunct/inline-old/cpp.rb +0 -39
  34. data/work/defunct/inline-old/css.rb +0 -32
  35. data/work/defunct/inline-old/html.rb +0 -32
  36. data/work/defunct/inline-old/js.rb +0 -85
  37. data/work/defunct/inline-old/ruby.rb +0 -147
  38. data/work/defunct/inline-old/type.rb +0 -91
  39. data/work/defunct/inline.rb +0 -202
  40. data/work/defunct/plan.rb +0 -37
  41. data/work/defunct/tiller.rb +0 -200
  42. data/work/defunct/webme/options.yml +0 -4
  43. data/work/defunct/whole.rb +0 -221
  44. data/work/plugins/syckle/erbside.rb +0 -45
  45. data/work/radio_earth.jpg +0 -0
  46. data/yard.watchr +0 -12
@@ -1,45 +0,0 @@
1
- /* COLOR */
2
-
3
- body { color: ##EEEEEE; background: #ffffff; }
4
- h1, h2, h3, h4 { color: #007700; }
5
- a { color: #007700; }
6
- pre { color: white; }
7
-
8
- /* #header .title */
9
-
10
- #header { }
11
-
12
- .title h1 { color: #007700; }
13
- .title pre { background: transparent; }
14
-
15
- .download {
16
- background: #80F780;
17
- border-color: #007700;
18
- color: ##EEEEEE;
19
- }
20
-
21
- .download a { color: #007700; }
22
-
23
- /* #nav .menu */
24
-
25
- #nav { border-color: #007700;
26
- background: url(../images/fade.png) repeat-y #80F780;
27
- }
28
-
29
- .menu ul { background: transparent; }
30
- .menu ul li a { color: #007700; border-color: #80F780; }
31
-
32
- /* #main .doc */
33
-
34
- .doc { }
35
- .doc a { color: #007700; }
36
- .doc a:hover { }
37
- .doc p { color: ##EEEEEE; }
38
- .doc h2 { color: #007700; border-color: #80F780; }
39
- .doc h3 { color: #007700; border-color: #80F780; }
40
-
41
- /* #footer .copyright */
42
-
43
- /* #footer { background: #green; border-color: #007700; } */
44
- .copyright { color: colors[:text]; }
45
-
@@ -1,39 +0,0 @@
1
- /* FONT */
2
-
3
- html { font-family: sans-serif; font-size: 100%; }
4
- body { }
5
- pre { font-family: monospace; }
6
- td { text-align: left; }
7
- p { text-align: justify; font-size: 80%; font-weight: bold; line-height: 170%; }
8
- li { font-size: 80%; font-weight: bold; line-height: 110%; }
9
- a { text-decoration: none; }
10
- a:hover { text-decoration: underline; }
11
-
12
- /* #header .title */
13
-
14
- .title { font-size: 80%; }
15
- .title h1 { font-size: 450%; font-weight: bold; }
16
-
17
- .download { font-size: 150%; text-align: center; }
18
- .download h1 { font-size: 64px; }
19
- .download h1 a:hover { text-decoration: none; }
20
-
21
- /* #main .doc */
22
-
23
- .doc { }
24
- .doc a { font-size: 100%; }
25
- .doc a:hover { text-decoration: underline; }
26
- .doc h2 { font-size: 2em; font-weight: bold; }
27
- .doc h3 { font-style: italic;}
28
-
29
- /* #nav .menu */
30
-
31
- .menu { text-align: left; }
32
- .menu ul li a { font-family: sans-serif; font-weight: bold; text-decoration: none; }
33
- .menu ul li a:hover { text-decoration: underline; }
34
- .menu ul li a:active { text-decoration: underline; }
35
-
36
- /* #footer .copyright */
37
-
38
- .copyright { font: bold .8em sans-serif; }
39
-
@@ -1,51 +0,0 @@
1
- /* STRUCTURE */
2
-
3
- body {margin:0;padding:0;position:relative;}
4
- div {margin:0;padding:0;}
5
- h1 {margin:5px 0;}
6
- li {padding:3px 0;}
7
- pre {margin:10px 0;}
8
- pre code {padding:10px 10px;}
9
- img {border:none;}
10
- td {vertical-align:top;}
11
-
12
- /* #header .title .download .logo */
13
-
14
- #header {position:relative; padding-right:200px;}
15
-
16
- .title {width:720px; margin:0 auto; padding:10px 0;}
17
- .title ul {padding-left: 20px;}
18
-
19
- .download {width:200px;height:120px;float:right;margin-top:30px;padding:10px;border:4px solid;-moz-border-radius:20px;border-radius:20px;}
20
- .logo {float:right;margin-top:10px;padding:10px;}
21
-
22
- /* #nav .menu */
23
-
24
- #nav { position: fixed; padding: 20px; right: 0; top: 40px; width: 200px;
25
- border-top: 4px solid; border-left: 4px solid; border-bottom: 4px solid;
26
- -moz-border-radius-topleft: 20px; -webkit-border-top-left-radius: 20px;
27
- -moz-border-radius-bottomleft: 20px; -webkit-border-bottom-left-radius: 20px;
28
- }
29
-
30
- .menu { margin: 0 auto; text-align: left; }
31
- .menu ul { list-style-type: none; margin: 0px; padding: 0px; width: 100%; position: relative; }
32
- .menu ul li { margin: 15px 10px 15px 0; line-height: 20px; }
33
- .menu ul li a { border-top: 0 solid; }
34
-
35
- /* #main .doc */
36
-
37
- #main { padding: 0px; padding-right: 200px; }
38
-
39
- .doc { width: 720px; margin: 0 auto; padding: 20px 0 10px 0; min-height: 890px; }
40
- .doc h2 { border-left: 0px solid; padding-left: 0; }
41
- .doc h2 img { margin: 0 0 0 0; }
42
- .doc h3 { border-bottom: 1px dotted; }
43
-
44
- /* #footer .copyright */
45
-
46
- #footer { padding-right: 200px; border-top: 0px solid; margin-top: 10px; }
47
-
48
- .advert { margin: 30px 0 10px 0; text-align: center; }
49
-
50
- .copyright { width: 720px; margin: 0 auto; padding: 0 0 30px 0; }
51
-
@@ -1,36 +0,0 @@
1
- module Till
2
-
3
- class Inline
4
-
5
- require 'till/inline/type'
6
-
7
- # = Base Script Matcher
8
- #
9
- class Bash < Type
10
- EXTENSIONS = %w{ .sh }
11
- #PATTERNS = [
12
- # /^(.*?)\#([ \t]*\:till(\+\d*)?\:)(.*?\S.*?)$/,
13
- # /^(.*?)\#([ \t]*\:till(\+\d*)?\:)[ \t]*\n(?m:.*?)\#[ \t]*\:end\:/,
14
- #]
15
-
16
- def self.extensions ; EXTENSIONS ; end
17
-
18
- def self.start?(line)
19
- if /^(\s*)(.*?)(\s*\#\s*\:till(\+\d*)?\:\s*)/ =~ line
20
- new($&, $1, $2, $3, $4, $')
21
- end
22
- end
23
-
24
- def stop?(line)
25
- if /^\s*\#\s*:end:/ =~ line
26
- $&
27
- elsif /^\s*[^#]/ =~ line
28
- true
29
- end
30
- end
31
- end
32
-
33
- end
34
-
35
- end
36
-
@@ -1,39 +0,0 @@
1
- module Till
2
-
3
- class Inline
4
-
5
- require 'till/inline/type'
6
-
7
- #
8
- class Cpp < Type
9
-
10
- EXTENSIONS = %w{ .c .cpp }
11
-
12
- def self.extensions ; EXTENSIONS ; end
13
-
14
- def self.start(line)
15
- if /^(\s*)(.*?)(\s*\/(\/|\*)\s*\:till(\+\d*)?\:\s*)/ =~ line
16
- new($&, $1, $2, $3, $4, $')
17
- end
18
- end
19
-
20
- def stop?(line)
21
- if marker =~ /\/\*/
22
- if /^.*?\*\// =~ line
23
- $&
24
- end
25
- else
26
- if /^\s*\#\s*:end:/ =~ line
27
- $&
28
- elsif /^\s*(?!:\/\/)/ =~ line
29
- true
30
- end
31
- end
32
- end
33
-
34
- end
35
-
36
- end
37
-
38
- end
39
-
@@ -1,32 +0,0 @@
1
- module Till
2
-
3
- class Inline
4
-
5
- require 'till/inline/type'
6
-
7
- # = CSS Matcher
8
- #
9
- class CSS < Type
10
-
11
- EXTENSIONS = %w{ .css }
12
-
13
- def self.extensions ; EXTENSIONS ; end
14
-
15
- def self.start(line)
16
- if /^(\s*)(.*?)(\s*\/\*\s*\:till(\+\d*)?\:\s*)/ =~ line
17
- new($&, $1, $2, $3, $4, $')
18
- end
19
- end
20
-
21
- def stop?(line)
22
- if /^(.*?)\*\/(.*?)$/ =~ line
23
- $&
24
- end
25
- end
26
-
27
- end
28
-
29
- end
30
-
31
- end
32
-
@@ -1,32 +0,0 @@
1
- module Till
2
-
3
- class Inline
4
-
5
- require 'till/inline/type'
6
-
7
- # = HTML Matcher
8
- #
9
- class Html < Type
10
-
11
- EXTENSIONS = %w{ .html }
12
-
13
- def self.extensions ; EXTENSIONS ; end
14
-
15
- def self.start(line)
16
- if /^(\s*)(.*?)(\s*(<!--)\s*\:till(\+\d*)?\:\s*)/ =~ line
17
- new($&, $1, $2, $3, $4, $')
18
- end
19
- end
20
-
21
- def stop?(line)
22
- if /-->/ =~ line
23
- $&
24
- end
25
- end
26
-
27
- end#class Html
28
-
29
- end#class Inline
30
-
31
- end#module Till
32
-
@@ -1,85 +0,0 @@
1
- module Till
2
- module Inline
3
-
4
- require 'till/inline/type'
5
-
6
- #
7
- class Javascript < Parser
8
-
9
- EXTENSIONS = %w{ .js }
10
-
11
- LINE_BACK = /^(\s*)(.*?)(\s*\/\/\s*\:till)(\+\d*)?(\:)(.*?\S.*?)$/
12
-
13
- LINE_BLOCK = /^(\ *)(.*?)(\ *\/\/\ *\:till(\+\d*)?(\:)(\s*\n))((?m:\/\/.*?\n)*)(\/\/[ \t]*:end:)/
14
-
15
- BLOCK = /^(.*?)\/\*(\s*\:till(\+\d*)?\:)(?m:.*?)\*\//
16
-
17
- def extensions
18
- EXTENSIONS
19
- end
20
-
21
- def parse(text)
22
- text = parse_line_backs(text)
23
- text = parse_line_blocks(text)
24
- text = parse_blocks(text)
25
- end
26
-
27
- def parse_lines_backs(text)
28
- text.gsub(LINE_BACK) do |m|
29
- indent = $1
30
- front = $2
31
- remark = $3 + $4.to_s + $5 + $6
32
- render = $6.strip
33
- count = $4
34
- #offset = 1
35
- result = render_template(render)
36
- format(indent, front, remark, result, count)
37
- end
38
- end
39
-
40
- def parse_line_blocks(text)
41
- text.gsub(LINE_BLOCK) do |m|
42
- indent = $1
43
- front = $2
44
- remark = $3 + $4.to_s + $5 +$6
45
- render = $7.strip.gsub(/^\s*\/\//, '')
46
- count = $3
47
- result = render_template(render)
48
- format(indent, front, remark, result, count)
49
- end
50
- end
51
-
52
- def parse_blocks(text)
53
- text.gsub(BLOCK) do |m|
54
- indent = $1
55
- front = nil
56
- remark = $2 + $3.to_s + $4 + $5
57
- render = $5.strip
58
- count = $3
59
- result = render_template(render)
60
- format(indent, front, remark, result, count)
61
- end
62
- end
63
-
64
- #
65
- def format(indent, front, remark, render, multi=nil)
66
- size = render.count("\n")
67
- if multi || size > 0
68
- indent + remark.sub(/:till(\+\d+)?:/, ":till+#{size}:") + "\n" + render
69
- else
70
- if render =~ /^\s*\^/
71
- b = render.index('^') + 1
72
- e = render.index(/[<{]/) || - 1
73
- m = render[b...e]
74
- i = front.index(m)
75
- render = front[0...i] + render.sub('^','')
76
- end
77
- "\n" + indent + render + remark.sub(/:till(\+\d+)?:/, ":till:") + "\n"
78
- end
79
- end
80
-
81
- end#class Javascript
82
-
83
- end#module Inline
84
- end#module Till
85
-
@@ -1,147 +0,0 @@
1
- module Till
2
-
3
- class Inline
4
-
5
- require 'till/inline/type'
6
-
7
- # = Ruby Script Matcher
8
- #
9
- # TODO: Add =begin ... =end matching
10
-
11
- class Ruby < Type
12
-
13
- EXTENSIONS = %w{ .rb }
14
-
15
- #PATTERNS = [
16
- # /^(.*?)\#([ \t]*\:till(\+\d*)?\:)(.*?\S.*?)$/,
17
- # /^(.*?)\#([ \t]*\:till(\+\d*)?\:)[ \t]*\n(?m:.*?)\#[ \t]*\:end\:/,
18
- # /^=begin\s*\:till\:(.*?)^=end/m
19
- #]
20
-
21
- def self.extensions ; EXTENSIONS ; end
22
-
23
- def self.start?(line)
24
- /\#\s*\:till(\+\d*)?\:/ =~ line
25
- end
26
-
27
- def self.parse(lines, index)
28
- line = lines[index]
29
-
30
- case line
31
- when /^(\s*)(.*?)(\s*\#\s*\:till)(\+\d*)?(\:)(.*?\S.*?)$/
32
- indent = $1
33
- front = $2
34
- remark = $3 + $4.to_s + $5 + $6
35
- render = $6.strip
36
- count = $4
37
- offset = 1
38
-
39
- [indent, front, remark, render, count, offset]
40
-
41
- when /^(\s*)(\#\s*\:till)(\+\d*)?(\:)(\s*)$/
42
- indent = $1
43
- front = nil
44
- remark = $2 + $3.to_s + $4 + $5
45
- render = $5.strip
46
- count = $3
47
-
48
- i, s = index + 1, nil
49
- until s or i == lines.size
50
- remain = lines[i]
51
- s = stop?(remain)
52
- i += 1
53
- end
54
-
55
- remark = remark + lines[index+1...i].join("\n")
56
- render = render + lines[index+1...i].join("\n")
57
-
58
- [indent, front, remark, render, count, i]
59
- end
60
- end
61
-
62
- #
63
- def self.stop?(line)
64
- if md = /^(\s*)(\#\s*:end:)/.match(line)
65
- [md, true]
66
- elsif md = /^(\s*)[^#]/.match(line)
67
- [md, false]
68
- end
69
- end
70
-
71
- #
72
- def self.format(indent, front, remark, render, multi=nil)
73
- size = render.count("\n")
74
- if multi || size > 0
75
- indent + remark.sub(/:till(\+\d+)?:/, ":till+#{size}:") + "\n" + render
76
- else
77
- if render =~ /^\s*\^/
78
- b = render.index('^') + 1
79
- e = render.index(/[<{]/) || - 1
80
- m = render[b...e]
81
- i = front.index(m)
82
- render = front[0...i] + render.sub('^','')
83
- end
84
- "\n" + indent + render + remark.sub(/:till(\+\d+)?:/, ":till:") + "\n"
85
- end
86
- end
87
-
88
- end#class Ruby
89
-
90
- end#class Inline
91
-
92
- end#module Till
93
-
94
-
95
-
96
- =begin
97
- #
98
- class Javascript < Type
99
- EXTENSIONS = %w{ .js }
100
- PATTERNS = [
101
- /^(.*?)\/\/([ \t]*\:till(\+\d*)?\:)(.*?\S.*?)$/,
102
- /^(.*?)\/\/([ \t]*\:till(\+\d*)?\:)[ \t]*\n(?m:.*?)\/\/[ \t]*\:end\:/,
103
- /^(.*?)\/\*(\s*\:till(\+\d*)?\:)(?m:.*?)\*\//
104
- ]
105
-
106
- def self.extensions ; EXTENSIONS ; end
107
- def self.patterns ; PATTERNS ; end
108
- end
109
-
110
-
111
- #
112
- class Cpp < Type
113
- EXTENSIONS = %w{ .c .cpp }
114
- PATTERNS = [
115
- /^(.*?)\/\/([ \t]*\:till(\+\d*)?\:)(.*?\S.*?)$/,
116
- /^(.*?)\/\/([ \t]*\:till(\+\d*)?\:)[ \t]*\n(?m:.*?)\/\/[ \t]*\:end\:/,
117
- /^(.*?)\/\*(\s*\:till(\+\d*)?\:)(?m:.*?)\*\//
118
- ]
119
-
120
- def self.extensions ; EXTENSIONS ; end
121
- def self.patterns ; PATTERNS ; end
122
- end
123
-
124
-
125
- #
126
- class SGML < Type
127
- EXTENSIONS = %w{ .html }
128
- PATTERNS = [
129
- /^(.*?)<!--(\s*\:till(\+\d*)?\:)(?m:.*?)-->/
130
- ]
131
-
132
- def self.extensions ; EXTENSIONS ; end
133
- def self.patterns ; PATTERNS ; end
134
- end
135
-
136
- #
137
- class CSS < Type
138
- EXTENSIONS = %w{ .css }
139
- PATTERNS = [
140
- /^(.*?)\/\*(\s*\:till(\+\d*)?\:)(?m:.*?)\*\//
141
- ]
142
-
143
- def self.extensions ; EXTENSIONS ; end
144
- def self.patterns ; PATTERNS ; end
145
- end
146
- =end
147
-