w2tags 0.9.57 → 0.9.58

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. data/Manifest.txt +22 -3
  2. data/hot/demo.hot +30 -0
  3. data/lib/w2tags/parser.rb +11 -4
  4. data/lib/w2tags/try/public/{js → javascripts}/jquery.cluetip.js +0 -0
  5. data/lib/w2tags/try/public/javascripts/jquery.live.accordion.js +19 -0
  6. data/lib/w2tags/try/public/skyeight.jpeg +0 -0
  7. data/lib/w2tags/try/public/stylesheets/back/back_menu.gif +0 -0
  8. data/lib/w2tags/try/public/stylesheets/icons/folder-closed.gif +0 -0
  9. data/lib/w2tags/try/public/stylesheets/icons/folder-open.gif +0 -0
  10. data/lib/w2tags/try/public/stylesheets/icons/leaf.gif +0 -0
  11. data/lib/w2tags/try/public/{css → stylesheets}/jquery.cluetip.css +0 -0
  12. data/lib/w2tags/try/public/stylesheets/jquery.live.accordion.css +52 -0
  13. data/lib/w2tags/try/public/w2/check_onhot.w2erb +10 -0
  14. data/lib/w2tags/try/public/w2/checkbox.w2erb +22 -0
  15. data/lib/w2tags/try/public/w2/combo_onhot.w2erb +3 -0
  16. data/lib/w2tags/try/public/w2/combobox.w2erb +3 -11
  17. data/lib/w2tags/try/public/w2/demo.hot.html +73 -0
  18. data/lib/w2tags/try/public/w2/erb_base.hot.html +4 -3
  19. data/lib/w2tags/try/public/w2/erb_rails.hot.html +2 -1
  20. data/lib/w2tags/try/public/w2/html.hot.html +1 -1
  21. data/lib/w2tags/try/public/w2/navigation.w2erb +2 -0
  22. data/lib/w2tags/try/public/w2/rails.hot.html +2 -1
  23. data/lib/w2tags/try/public/w2/table_each2.w2erb +12 -0
  24. data/lib/w2tags/try/public/w2/table_onhot.w2erb +10 -0
  25. data/lib/w2tags/try/public/w2/table_simple.w2erb +9 -0
  26. data/lib/w2tags/try/public/w2/try.rb.hot.html +2 -1
  27. data/lib/w2tags/try/public/w2/vcard.w2erb +9 -0
  28. data/lib/w2tags/try/try.rb +1 -0
  29. data/lib/w2tags/try/views/index.erb +127 -75
  30. data/lib/w2tags/try/views/layout.erb +5 -3
  31. data/tasks/setup.rb +1 -1
  32. metadata +39 -8
  33. data/lib/w2tags/try/public/js/jquery.js +0 -4376
data/Manifest.txt CHANGED
@@ -28,19 +28,20 @@ lib/w2tags/try/public/css
28
28
  lib/w2tags/try/public/img
29
29
  lib/w2tags/try/public/javascripts
30
30
  lib/w2tags/try/public/js
31
+ lib/w2tags/try/public/skyeight.jpeg
32
+ lib/w2tags/try/public/stylesheets
31
33
  lib/w2tags/try/public/w2
32
34
  lib/w2tags/try/public/css/csscolors.css
33
- lib/w2tags/try/public/css/jquery.cluetip.css
34
35
  lib/w2tags/try/public/css/jscolors.css
35
36
  lib/w2tags/try/public/css/rubycolors.css
36
37
  lib/w2tags/try/public/css/xmlcolors.css
37
38
  lib/w2tags/try/public/img/loading.gif
39
+ lib/w2tags/try/public/javascripts/jquery.cluetip.js
38
40
  lib/w2tags/try/public/javascripts/jquery.js
41
+ lib/w2tags/try/public/javascripts/jquery.live.accordion.js
39
42
  lib/w2tags/try/public/js/codemirror.js
40
43
  lib/w2tags/try/public/js/editor.js
41
44
  lib/w2tags/try/public/js/highlight.js
42
- lib/w2tags/try/public/js/jquery.cluetip.js
43
- lib/w2tags/try/public/js/jquery.js
44
45
  lib/w2tags/try/public/js/mirrorframe.js
45
46
  lib/w2tags/try/public/js/parsecss.js
46
47
  lib/w2tags/try/public/js/parsehtmlmixed.js
@@ -53,12 +54,24 @@ lib/w2tags/try/public/js/tokenize.js
53
54
  lib/w2tags/try/public/js/tokenizejavascript.js
54
55
  lib/w2tags/try/public/js/undo.js
55
56
  lib/w2tags/try/public/js/util.js
57
+ lib/w2tags/try/public/stylesheets/back
58
+ lib/w2tags/try/public/stylesheets/icons
59
+ lib/w2tags/try/public/stylesheets/jquery.cluetip.css
60
+ lib/w2tags/try/public/stylesheets/jquery.live.accordion.css
61
+ lib/w2tags/try/public/stylesheets/back/back_menu.gif
62
+ lib/w2tags/try/public/stylesheets/icons/folder-closed.gif
63
+ lib/w2tags/try/public/stylesheets/icons/folder-open.gif
64
+ lib/w2tags/try/public/stylesheets/icons/leaf.gif
56
65
  lib/w2tags/try/public/w2/basic.w2erb
57
66
  lib/w2tags/try/public/w2/basic1.w2erb
58
67
  lib/w2tags/try/public/w2/basic2.w2erb
59
68
  lib/w2tags/try/public/w2/basic3.w2erb
60
69
  lib/w2tags/try/public/w2/basic4.w2erb
70
+ lib/w2tags/try/public/w2/checkbox.w2erb
71
+ lib/w2tags/try/public/w2/check_onhot.w2erb
61
72
  lib/w2tags/try/public/w2/combobox.w2erb
73
+ lib/w2tags/try/public/w2/combo_onhot.w2erb
74
+ lib/w2tags/try/public/w2/demo.hot.html
62
75
  lib/w2tags/try/public/w2/diet.w2erb
63
76
  lib/w2tags/try/public/w2/diet1.w2erb
64
77
  lib/w2tags/try/public/w2/each.w2erb
@@ -70,17 +83,23 @@ lib/w2tags/try/public/w2/if.w2erb
70
83
  lib/w2tags/try/public/w2/layout.w2erb
71
84
  lib/w2tags/try/public/w2/layout1.w2erb
72
85
  lib/w2tags/try/public/w2/layout2.w2erb
86
+ lib/w2tags/try/public/w2/navigation.w2erb
73
87
  lib/w2tags/try/public/w2/nestli.w2erb
74
88
  lib/w2tags/try/public/w2/params.erb
75
89
  lib/w2tags/try/public/w2/params.w2erb
76
90
  lib/w2tags/try/public/w2/popup.w2erb
77
91
  lib/w2tags/try/public/w2/popup2.w2erb
78
92
  lib/w2tags/try/public/w2/rails.hot.html
93
+ lib/w2tags/try/public/w2/table_each2.w2erb
94
+ lib/w2tags/try/public/w2/table_onhot.w2erb
95
+ lib/w2tags/try/public/w2/table_simple.w2erb
79
96
  lib/w2tags/try/public/w2/try.rb.hot.html
80
97
  lib/w2tags/try/public/w2/upload.w2erb
98
+ lib/w2tags/try/public/w2/vcard.w2erb
81
99
  lib/w2tags/try/views/index.erb
82
100
  lib/w2tags/try/views/layout.erb
83
101
  lib/w2tags/try/views/parse.erb
102
+ hot/demo.hot
84
103
  hot/erb.hot
85
104
  hot/erb_base.hot
86
105
  hot/erb_form.hot
data/hot/demo.hot ADDED
@@ -0,0 +1,30 @@
1
+ >>_nav
2
+ %ul$#
3
+ -itm$. $*
4
+
5
+ >>_itm
6
+ %li$. <a href="#">$0</a>
7
+
8
+ >>_hdr
9
+ %tr
10
+ ^ $*
11
+
12
+ >>_dtl
13
+ -each @recs;r
14
+ %tr
15
+ ^= $*
16
+
17
+ >>_select
18
+ %select$$
19
+ -each @*.;r
20
+ ^{value="=$1"}= $2
21
+
22
+ >>_check
23
+ %label{for="*#"}
24
+ %input$#{type="checkbox"}
25
+ $0
26
+
27
+ >>_area
28
+ %label{for="*#"} $0<
29
+ %textarea$$
30
+
data/lib/w2tags/parser.rb CHANGED
@@ -702,9 +702,7 @@ module W2Tags
702
702
  if @doc_out[-1] and @doc_out[-1].strip=='<% end %>'
703
703
  @doc_out.pop if %w[else elsif].include? prms.split(' ')[0]
704
704
  end
705
- while prms[-1,1]=='\\' do #concenation line if params end with \
706
- prms.gsub!(/\\$/,'') << @doc_src.shift.strip
707
- end
705
+ params_inline prms #concenation line if params end with \
708
706
  @mem_var["$tag"] = @key
709
707
  if @tg_hot[@key]
710
708
  hots = @tg_hot[@key]
@@ -867,7 +865,8 @@ module W2Tags
867
865
  opt=''
868
866
  @mem_hot=nil
869
867
  end
870
-
868
+ params_inline prms #concenation line if params end with \
869
+
871
870
  @new = @mem_tag[keys].split(' ')
872
871
  @new[0] << tmp
873
872
  @new = @new.join(" ") << "\n"
@@ -951,6 +950,7 @@ module W2Tags
951
950
  p "W2Tag: try closing tag by indentation..." if @dbg[:parse]
952
951
  return true
953
952
  else
953
+ params_inline @txt #concenation line if params end with \
954
954
  @mem_var["$tag"] = @key
955
955
  nameidclass_var()
956
956
  srcs = @rgx.to_s.gsub!(/^[ \t]*/,'')
@@ -989,5 +989,12 @@ module W2Tags
989
989
  end
990
990
  @rgx
991
991
  end
992
+
993
+ #concenation line if params end with \
994
+ def params_inline prms
995
+ while prms[-1,1]=='\\' do
996
+ prms.gsub!(/\\$/,'') << @doc_src.shift.strip
997
+ end
998
+ end
992
999
  end
993
1000
  end
@@ -0,0 +1,19 @@
1
+ (function($){
2
+ $(function(){
3
+ //HIDE THE DIVS ON PAGE LOAD
4
+ $("div.accordionContent").hide();
5
+ $("#wrapper div.accordionContent>a").prepend('<img src="/stylesheets/icons/leaf.gif"/>');
6
+
7
+ //ACCORDION BUTTON ACTION
8
+ $('div.accordionButton').live('click',function() {
9
+ var prn = $(this).parent();
10
+ prn.find('>div.accordionContent').slideUp('normal');
11
+ prn.find('>div.accordionButton.open').removeClass('open');
12
+ $(this).addClass('open').next().slideDown('normal');
13
+ });
14
+ });
15
+ $(function(){
16
+ $('#wrapper>.accordionButton:eq(2)').click();
17
+ $('#wrapper>.accordionContent').find('.accordionButton:eq(0)').click();
18
+ });
19
+ })(jQuery);
Binary file
@@ -0,0 +1,52 @@
1
+ body, p, ol, ul, td, tr {
2
+ font-family:arial,verdana,helvetica,sans-serif;
3
+ font-size:12px;}
4
+
5
+ a {
6
+ color:#566CA5;
7
+ text-decoration:none;}
8
+
9
+ img {
10
+ border:medium none;}
11
+
12
+ #wrapper {
13
+ width: 200px;
14
+ overflow:hidden;
15
+ background-color:#DDDDFF;}
16
+
17
+ .accordionContent {
18
+ padding-left:8px;}
19
+
20
+ .accordionContent>a{
21
+ display:block;}
22
+
23
+ .accordionContent>a:hover{
24
+ background-color:#FFECEC;}
25
+
26
+ #wrapper>.accordionButton {
27
+ width:199px;
28
+ height:19px;
29
+ font-weight:bold;
30
+ padding:5px;
31
+ background-image:url(back/back_menu.gif);
32
+ background-position: 0px -3px;
33
+ cursor: pointer;}
34
+
35
+ #wrapper>.accordionContent {
36
+ width: 210px;
37
+ display: none;}
38
+
39
+ #wrapper>.accordionContent>.accordionButton {
40
+ font-family:arial,verdana,helvetica,sans-serif;
41
+ font-size:11px;
42
+ font-weight:bold;
43
+ height:15px;
44
+ background-repeat:no-repeat;
45
+ padding:2px 0 0 18px;
46
+ cursor: pointer;}
47
+
48
+ #wrapper>.accordionContent>.accordionButton {
49
+ background-image:url("icons/folder-closed.gif");}
50
+
51
+ #wrapper>.accordionContent>.accordionButton.open {
52
+ background-image:url("icons/folder-open.gif");}
@@ -0,0 +1,10 @@
1
+ !hot!demo
2
+ %fieldset
3
+ %legend Which of the following sports do you enjoy?
4
+ -check#football Football
5
+ -check#golf Golf
6
+ -check#rugby Rugby
7
+ -check#tennis Tennis
8
+ -check#basketball Basketball
9
+ -check#boxing Boxing
10
+ -area#comments{rows="7" cols="25"} Comments
@@ -0,0 +1,22 @@
1
+ %fieldset
2
+ %legend Which of the following sports do you enjoy?
3
+ %label{for="football"}
4
+ %input#football{type="checkbox"}
5
+ Football
6
+ %label{for="golf"}
7
+ %input#golf{type="checkbox"}
8
+ Golf
9
+ %label{for="rugby"}
10
+ %input#rugby{type="checkbox"}
11
+ Rugby
12
+ %label{for="tennis"}
13
+ %input#tennis{type="checkbox"}
14
+ Tennis
15
+ %label{for="basketball"}
16
+ %input#basketball{type="checkbox"}
17
+ Basketball
18
+ %label{for="boxing"}
19
+ %input#boxing{type="checkbox"}
20
+ Boxing
21
+ %label{for="comments"} Comments<
22
+ %textarea#comments{rows="7" cols="25"}
@@ -0,0 +1,3 @@
1
+ !hot!demo
2
+ -select.country r[:ctr_id];r[:ctr_name]
3
+ -select.region r[:reg_id];r[:reg_name]
@@ -1,11 +1,3 @@
1
- !H!_td_cmbx
2
- %td
3
- %select$$
4
- %option{value=""} --Please select--
5
- -each @$0;r
6
- %option{value="<%=r[:$1] %>"}= r[:$2]
7
-
8
- %table
9
- %tr
10
- -td_cmbx.count country;ctr_id;ctr_name
11
- -td_cmbx.cities city;cty_id;cty_name
1
+ %select.region
2
+ -each @region;r
3
+ ^{value="<%=r[:reg_id] %>"}= r[:reg_name]
@@ -0,0 +1,73 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
2
+ <html>
3
+ <head>
4
+ <META http-equiv=Content-Type content="text/html; charset=windows-1252">
5
+ <title>Exported from Notepad++</title>
6
+ <style type="text/css">
7
+ body{margin:0;}
8
+ span {
9
+ font-family: 'Inconsolata';
10
+ font-size: 10pt;
11
+ color: #FFFFFF;
12
+ }
13
+ .sc0 {
14
+ }
15
+ .sc4 {
16
+ color: #FF0000;
17
+ }
18
+ .sc5 {
19
+ font-size: 11pt;
20
+ font-weight: bold;
21
+ text-decoration: underline;
22
+ color: #FF8040;
23
+ }
24
+ .sc6 {
25
+ font-size: 9pt;
26
+ font-weight: bold;
27
+ text-decoration: underline;
28
+ color: #FFFF00;
29
+ }
30
+ .sc7 {
31
+ color: #FFFF00;
32
+ }
33
+ .sc10 {
34
+ font-weight: bold;
35
+ color: #80FFFF;
36
+ }
37
+ .sc11 {
38
+ }
39
+ </style>
40
+ </head>
41
+ <body>
42
+ <div style="width:600px;height:535px;overflow:auto;float: left; white-space: pre; line-height: 1; background: #000000; "><span class="sc5">&gt;&gt;_nav</span><span class="sc0">
43
+ </span><span class="sc6">%ul</span><span class="sc10">$#</span><span class="sc0">
44
+ </span><span class="sc6">-itm</span><span class="sc10">$.</span><span class="sc0"> </span><span class="sc10">$*</span><span class="sc0">
45
+
46
+ </span><span class="sc5">&gt;&gt;_itm</span><span class="sc0">
47
+ </span><span class="sc6">%li</span><span class="sc10">$.</span><span class="sc0"> </span><span class="sc11">&lt;a</span><span class="sc0"> </span><span class="sc7">href</span><span class="sc10">=</span><span class="sc11">"</span><span class="sc10">#</span><span class="sc11">"&gt;</span><span class="sc10">$</span><span class="sc4">0</span><span class="sc11">&lt;/a&gt;</span><span class="sc0">
48
+
49
+ </span><span class="sc5">&gt;&gt;_hdr</span><span class="sc0">
50
+ </span><span class="sc6">%tr</span><span class="sc0">
51
+ </span><span class="sc10">^</span><span class="sc0"> </span><span class="sc10">$*</span><span class="sc0">
52
+
53
+ </span><span class="sc5">&gt;&gt;_dtl</span><span class="sc0">
54
+ </span><span class="sc6">-each</span><span class="sc0"> </span><span class="sc11">@recs</span><span class="sc10">;</span><span class="sc11">r</span><span class="sc0">
55
+ </span><span class="sc6">%tr</span><span class="sc0">
56
+ </span><span class="sc10">^=</span><span class="sc0"> </span><span class="sc10">$*</span><span class="sc0">
57
+
58
+ </span><span class="sc5">&gt;&gt;_select</span><span class="sc0">
59
+ </span><span class="sc6">%select</span><span class="sc10">$$</span><span class="sc0">
60
+ </span><span class="sc6">-each</span><span class="sc0"> </span><span class="sc11">@</span><span class="sc10">*.;</span><span class="sc11">r</span><span class="sc0">
61
+ </span><span class="sc10">^{</span><span class="sc7">value</span><span class="sc10">=</span><span class="sc11">"</span><span class="sc10">=$</span><span class="sc4">1</span><span class="sc11">"</span><span class="sc10">}=</span><span class="sc0"> </span><span class="sc10">$</span><span class="sc4">2</span><span class="sc0">
62
+
63
+ </span><span class="sc5">&gt;&gt;_check</span><span class="sc0">
64
+ </span><span class="sc6">%label</span><span class="sc10">{</span><span class="sc11">for</span><span class="sc10">=</span><span class="sc11">"</span><span class="sc10">*#</span><span class="sc11">"</span><span class="sc10">}</span><span class="sc0">
65
+ </span><span class="sc6">%input</span><span class="sc10">$#{</span><span class="sc7">type</span><span class="sc10">=</span><span class="sc11">"checkbox"</span><span class="sc10">}</span><span class="sc0">
66
+ </span><span class="sc10">$</span><span class="sc4">0</span><span class="sc0">
67
+
68
+ </span><span class="sc5">&gt;&gt;_area</span><span class="sc0">
69
+ </span><span class="sc6">%label</span><span class="sc10">{</span><span class="sc11">for</span><span class="sc10">=</span><span class="sc11">"</span><span class="sc10">*#</span><span class="sc11">"</span><span class="sc10">}</span><span class="sc0"> </span><span class="sc10">$</span><span class="sc4">0</span><span class="sc11">&lt;</span><span class="sc0">
70
+ </span><span class="sc6">%textarea</span><span class="sc10">$$</span><span class="sc0">
71
+
72
+ </span></div></body>
73
+ </html>
@@ -4,9 +4,10 @@
4
4
  <META http-equiv=Content-Type content="text/html; charset=windows-1252">
5
5
  <title>Exported from Notepad++</title>
6
6
  <style type="text/css">
7
+ body{margin:0;}
7
8
  span {
8
- font-family: 'Consolas';
9
- font-size: 8pt;
9
+ font-family: 'Inconsolata';
10
+ font-size: 10pt;
10
11
  color: #FFFFFF;
11
12
  }
12
13
  .sc0 {
@@ -45,7 +46,7 @@ span {
45
46
  </style>
46
47
  </head>
47
48
  <body>
48
- <div style="float: left; white-space: pre; line-height: 1; background: #000000; "><span class="sc5">&gt;&gt;_if</span><span class="sc0">
49
+ <div style="width:600px;height:535px;overflow:auto;float: left; white-space: pre; line-height: 1; background: #000000; "><span class="sc5">&gt;&gt;_if</span><span class="sc0">
49
50
  </span><span class="sc6">-</span><span class="sc0"> </span><span class="sc11">if</span><span class="sc0"> </span><span class="sc10">$</span><span class="sc4">0</span><span class="sc0">
50
51
  </span><span class="sc6">-end</span><span class="sc0">
51
52
 
@@ -4,6 +4,7 @@
4
4
  <META http-equiv=Content-Type content="text/html; charset=windows-1252">
5
5
  <title>Exported from Notepad++</title>
6
6
  <style type="text/css">
7
+ body{margin:0;}
7
8
  span {
8
9
  font-family: 'Consolas';
9
10
  font-size: 8pt;
@@ -38,7 +39,7 @@ span {
38
39
  </style>
39
40
  </head>
40
41
  <body>
41
- <div style="float: left; white-space: pre; line-height: 1; background: #000000; "><span class="sc5">&gt;&gt;_js</span><span class="sc0">
42
+ <div style="width:600px;height:535px;float: left; white-space: pre; line-height: 1; background: #000000; "><span class="sc5">&gt;&gt;_js</span><span class="sc0">
42
43
  </span><span class="sc6">%js</span><span class="sc0"> </span><span class="sc11">/javascripts/</span><span class="sc10">$</span><span class="sc4">0</span><span class="sc0">
43
44
 
44
45
  </span><span class="sc5">&gt;&gt;_css</span><span class="sc0">
@@ -4,7 +4,7 @@
4
4
  <META http-equiv=Content-Type content="text/html; charset=windows-1252">
5
5
  <title>Exported from Notepad++</title>
6
6
  <style type="text/css">
7
- body{margin:2px 0 0 0;}
7
+ body{margin:0;}
8
8
  span {
9
9
  font-family: 'Consolas';
10
10
  font-size: 8pt;
@@ -0,0 +1,2 @@
1
+ !hot!demo
2
+ -nav#navi.items Home;About;Client;Contact Us
@@ -4,6 +4,7 @@
4
4
  <META http-equiv=Content-Type content="text/html; charset=windows-1252">
5
5
  <title>Exported from Notepad++</title>
6
6
  <style type="text/css">
7
+ body{margin:0;}
7
8
  span {
8
9
  font-family: 'Consolas';
9
10
  font-size: 8pt;
@@ -26,7 +27,7 @@ span {
26
27
  </style>
27
28
  </head>
28
29
  <body>
29
- <div style="float: left; white-space: pre; line-height: 1; background: #000000; "><span class="sc5">&gt;&gt;initialize</span><span class="sc0">
30
+ <div style="width:600px;height:535px;float: left; white-space: pre; line-height: 1; background: #000000; "><span class="sc5">&gt;&gt;initialize</span><span class="sc0">
30
31
  </span><span class="sc11">!hot!html</span><span class="sc0">
31
32
  </span><span class="sc11">!hot!erb_base</span><span class="sc0">
32
33
  </span><span class="sc11">!hot!erb_rails</span><span class="sc0">
@@ -0,0 +1,12 @@
1
+ %table
2
+ %tr
3
+ ^ No;\
4
+ Name;\
5
+ Address;\
6
+ Phone
7
+ -each2 @recs;r,i
8
+ %tr
9
+ ^= i+1;\
10
+ r[:name];\
11
+ r[:address];\
12
+ r[:phone]
@@ -0,0 +1,10 @@
1
+ !hot!demo
2
+ %table
3
+ -hdr Id;\
4
+ Name;\
5
+ Address;\
6
+ Phone
7
+ -dtl r[:id];\
8
+ r[:name];\
9
+ r[:address];\
10
+ r[:phone]
@@ -0,0 +1,9 @@
1
+ %table
2
+ %tr
3
+ ^ Id;Name;Address;Phone
4
+ -each @recs;r
5
+ %tr
6
+ ^= r[:id];\
7
+ r[:name];\
8
+ r[:address];\
9
+ r[:phone]
@@ -4,6 +4,7 @@
4
4
  <META http-equiv=Content-Type content="text/html; charset=windows-1252">
5
5
  <title>Exported from Notepad++</title>
6
6
  <style type="text/css">
7
+ body{margin:0;}
7
8
  span {
8
9
  font-family: 'Consolas';
9
10
  font-size: 8pt;
@@ -34,7 +35,7 @@ span {
34
35
  </style>
35
36
  </head>
36
37
  <body>
37
- <div style="float: left; white-space: pre; line-height: 1; background: #000000; "><span class="sc11">require</span><span class="sc0"> </span><span class="sc7">'sinatra'</span><span class="sc0">
38
+ <div style="width:600px;height:535px;overflow:auto;float: left; white-space: pre; line-height: 1; background: #000000; "><span class="sc11">require</span><span class="sc0"> </span><span class="sc7">'sinatra'</span><span class="sc0">
38
39
 
39
40
  </span><span class="sc11">W2</span><span class="sc0"> </span><span class="sc10">=</span><span class="sc0"> </span><span class="sc11">W2Tags</span><span class="sc10">::</span><span class="sc11">Parser</span><span class="sc10">.</span><span class="sc11">new</span><span class="sc10">(</span><span class="sc7">'rails'</span><span class="sc10">)</span><span class="sc0">
40
41
 
@@ -0,0 +1,9 @@
1
+ .vcard
2
+ .fn Company Name
3
+ %a.org.url{href="http://www.domain.com"}/
4
+ %span.adr
5
+ %span.street-address 1 Main Road
6
+ %span.type.hide Work
7
+ %span.locality Town or City
8
+ %span.region Region or Country
9
+ %span.postal-code Postal or ZIP code
@@ -1,4 +1,5 @@
1
1
  require 'sinatra'
2
+ #require 'w2tags/sinatra_hook'
2
3
 
3
4
  W2 = W2Tags::Parser.new('rails')
4
5