w2tags 0.9.54 → 0.9.55
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +30 -0
- data/README.rdoc +4 -3
- data/bin/w2tags +13 -7
- data/hot/erb_rails.hot +2 -2
- data/hot/html.hot +15 -17
- data/lib/w2tags/parser.rb +9 -8
- data/lib/w2tags/try/public/javascripts/jquery.js +4376 -0
- data/lib/w2tags/try/public/w2/basic.w2erb +10 -0
- data/lib/w2tags/try/public/w2/basic1.w2erb +5 -0
- data/lib/w2tags/try/public/w2/basic2.w2erb +3 -0
- data/lib/w2tags/try/public/w2/basic3.w2erb +9 -0
- data/lib/w2tags/try/public/w2/basic4.w2erb +13 -0
- data/lib/w2tags/try/public/w2/combobox.w2erb +11 -0
- data/lib/w2tags/try/public/w2/diet.w2erb +18 -0
- data/lib/w2tags/try/public/w2/diet1.w2erb +10 -0
- data/lib/w2tags/try/public/w2/each.w2erb +4 -0
- data/lib/w2tags/try/public/w2/each2.w2erb +5 -0
- data/lib/w2tags/try/public/w2/html.hot.html +115 -0
- data/lib/w2tags/try/public/w2/if.w2erb +7 -0
- data/lib/w2tags/try/public/w2/layout.w2erb +9 -0
- data/lib/w2tags/try/public/w2/layout1.w2erb +20 -0
- data/lib/w2tags/try/public/w2/layout2.w2erb +17 -0
- data/lib/w2tags/try/public/w2/nestli.w2erb +31 -0
- data/lib/w2tags/try/public/w2/params.erb +69 -0
- data/lib/w2tags/try/public/w2/params.w2erb +70 -0
- data/lib/w2tags/try/public/w2/popup.w2erb +27 -0
- data/lib/w2tags/try/public/w2/popup2.w2erb +22 -0
- data/lib/w2tags/try/public/w2/upload.w2erb +15 -0
- data/lib/w2tags/try/try.rb +12 -0
- data/lib/w2tags/try/views/index.erb +82 -0
- data/lib/w2tags/try/views/layout.erb +16 -0
- data/tasks/setup.rb +1 -1
- metadata +51 -2
@@ -0,0 +1,27 @@
|
|
1
|
+
-# check on button, re-define
|
2
|
+
# you can see on the result...!
|
3
|
+
|
4
|
+
#pop1.pop-up
|
5
|
+
%table
|
6
|
+
%tr
|
7
|
+
%td{style="background:#DDEECC"}
|
8
|
+
.pop-up-hide.floatr
|
9
|
+
%button.bow Close
|
10
|
+
%tr
|
11
|
+
%td
|
12
|
+
.pop-up-preload.h \;
|
13
|
+
.pop-up-content \;
|
14
|
+
|
15
|
+
!H!button
|
16
|
+
%input$${type="button"} $0
|
17
|
+
|
18
|
+
#pop1.pop-up
|
19
|
+
%table
|
20
|
+
%tr
|
21
|
+
%td{style="background:#DDEECC"}
|
22
|
+
.pop-up-hide.floatr
|
23
|
+
%button.bow Close
|
24
|
+
%tr
|
25
|
+
%td
|
26
|
+
.pop-up-preload.h \;
|
27
|
+
.pop-up-content \;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
-# check on button, re-define
|
2
|
+
# you can see on the result...!
|
3
|
+
|
4
|
+
!H!_popup
|
5
|
+
$$ $*<
|
6
|
+
%table
|
7
|
+
%tr
|
8
|
+
%td{style="background:#DDEECC"}
|
9
|
+
.pop-up-hide.floatr
|
10
|
+
%button.bow Close
|
11
|
+
%tr
|
12
|
+
%td
|
13
|
+
.pop-up-preload.h \;
|
14
|
+
.pop-up-content \;
|
15
|
+
|
16
|
+
-popup#pop1.pop-up wow
|
17
|
+
|
18
|
+
!H!button
|
19
|
+
%input$${type="button"} $0
|
20
|
+
|
21
|
+
-popup#pop2.pop-up isit
|
22
|
+
-popup#pop3.pop-up DRY?
|
@@ -0,0 +1,15 @@
|
|
1
|
+
!H!_upload
|
2
|
+
%tr
|
3
|
+
%td
|
4
|
+
%label{for="uploadFile"} Select File $0 :
|
5
|
+
%td
|
6
|
+
-form_tag "upload/uploadFile",:multipart => true
|
7
|
+
= file_field "upload", "datafile"
|
8
|
+
= hidden_field_tag "target", "$1"
|
9
|
+
= submit_tag "Upload"
|
10
|
+
|
11
|
+
%h3 Upload File
|
12
|
+
%table
|
13
|
+
-upload Pdf;pdf
|
14
|
+
-upload Csv;csv
|
15
|
+
-upload Image;img
|
@@ -0,0 +1,82 @@
|
|
1
|
+
<style>
|
2
|
+
#content a{font-size:1em;
|
3
|
+
}
|
4
|
+
#tryit td{
|
5
|
+
vertical-align:top;
|
6
|
+
}
|
7
|
+
textarea {
|
8
|
+
border:2px inset;
|
9
|
+
font-size:11px;
|
10
|
+
line-height:12px;
|
11
|
+
}
|
12
|
+
textarea.in1{
|
13
|
+
width:400px;
|
14
|
+
height:400px;
|
15
|
+
}
|
16
|
+
textarea.in2{
|
17
|
+
width:600px;
|
18
|
+
height:535px;
|
19
|
+
background-color:#EEEEEE;
|
20
|
+
}
|
21
|
+
|
22
|
+
</style>
|
23
|
+
<div id="content">
|
24
|
+
<a href="#" class="load2" loc="html">html.hot</a>
|
25
|
+
<table id="tryit">
|
26
|
+
<tr>
|
27
|
+
<td>
|
28
|
+
<form id="try" method="post">
|
29
|
+
<textarea wrap="off" name="input" class="in1"><% if params[:input] %><%= params[:input] %><% else %>%xhtml
|
30
|
+
%head
|
31
|
+
%title Myspace
|
32
|
+
%body
|
33
|
+
%h1 I am the international space station
|
34
|
+
%p Sign my guestbook<% end %></textarea><br/>
|
35
|
+
<input type="submit" value="Render"/><a href="/">Home</a>
|
36
|
+
<table border=1><tr>
|
37
|
+
<td><a href="#" class="load" loc="basic" >Simple Page</a><br/>
|
38
|
+
<a href="#" class="load" loc="basic1">Basic 1</a><br/>
|
39
|
+
<a href="#" class="load" loc="basic2">Basic 2</a><br/>
|
40
|
+
<a href="#" class="load" loc="basic3">Basic 3</a><br/>
|
41
|
+
<a href="#" class="load" loc="basic4">Basic 4</a>
|
42
|
+
</td>
|
43
|
+
<td><a href="#" class="load" loc="layout">Layout:</a><br/>
|
44
|
+
<a href="#" class="load" loc="layout1">Table</a><br/>
|
45
|
+
<a href="#" class="load" loc="layout2">Div</a>
|
46
|
+
</td>
|
47
|
+
<td><a href="#" class="load" loc="if">Block:if</a><br/>
|
48
|
+
<a href="#" class="load" loc="each">each</a><br/>
|
49
|
+
<a href="#" class="load" loc="each2">each2</a><br/>
|
50
|
+
</td>
|
51
|
+
<td><a href="#" class="load" loc="popup">Popup</a><br/>
|
52
|
+
<a href="#" class="load" loc="popup2">Popup2</a>
|
53
|
+
</td>
|
54
|
+
<td><a href="#" class="load" loc="params">Params</a>
|
55
|
+
</td>
|
56
|
+
<td><a href="#" class="load" loc="combobox">Combo</a>
|
57
|
+
</td>
|
58
|
+
<td><a href="#" class="load" loc="upload">Upload</a>
|
59
|
+
</td>
|
60
|
+
</tr></table>
|
61
|
+
</form>
|
62
|
+
</td>
|
63
|
+
<td class="i2">
|
64
|
+
<textarea wrap="off" class="ln- in2">
|
65
|
+
<%= @result %>
|
66
|
+
</textarea>
|
67
|
+
</td>
|
68
|
+
</tr>
|
69
|
+
</table>
|
70
|
+
</div>
|
71
|
+
<script>
|
72
|
+
$(function(){
|
73
|
+
$('a.load').live('click',function(){
|
74
|
+
var loc= "/w2/"+$(this).attr('loc')+".w2erb";
|
75
|
+
$('textarea.in1').load(loc);
|
76
|
+
});
|
77
|
+
$('a.load2').live('click',function(){
|
78
|
+
var loc= "/w2/"+$(this).attr('loc')+".hot.html";
|
79
|
+
$('td.i2').load(loc);
|
80
|
+
});
|
81
|
+
});
|
82
|
+
</script>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-type"/>
|
6
|
+
<title>W2tags Try</title>
|
7
|
+
<script type="text/javascript" src="/javascripts/jquery.js" > </script>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<strong>
|
11
|
+
You like w2tags, please <a href="http://rubytrends.com/project/trends/w2tags-552">vote for it on RubyTrends</a><br/>
|
12
|
+
Available on <a href="http://gemcutter.org/gems/w2tags">gemcutter</a>
|
13
|
+
</strong>
|
14
|
+
<%= yield %>
|
15
|
+
</body>
|
16
|
+
</html>
|
data/tasks/setup.rb
CHANGED
@@ -17,7 +17,7 @@ PROJ = OpenStruct.new(
|
|
17
17
|
:authors => 'Widi Harsojo',
|
18
18
|
:email => 'wharsojo@gmail.com',
|
19
19
|
:url => "\000",
|
20
|
-
:version => ENV['VERSION'] || '0.9.
|
20
|
+
:version => ENV['VERSION'] || '0.9.55',
|
21
21
|
:exclude => %w(tmp$ bak$ ~$ CVS \.svn/ \.git/ ^pkg/),
|
22
22
|
:release_name => ENV['RELEASE'],
|
23
23
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: w2tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.55
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- widi harsojo
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-29 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -28,6 +28,30 @@ extra_rdoc_files:
|
|
28
28
|
- doc/History.rdoc
|
29
29
|
- doc/HOT.rdoc
|
30
30
|
- bin/w2tags
|
31
|
+
- lib/w2tags/try/public/javascripts/jquery.js
|
32
|
+
- lib/w2tags/try/public/w2/basic.w2erb
|
33
|
+
- lib/w2tags/try/public/w2/basic1.w2erb
|
34
|
+
- lib/w2tags/try/public/w2/basic2.w2erb
|
35
|
+
- lib/w2tags/try/public/w2/basic3.w2erb
|
36
|
+
- lib/w2tags/try/public/w2/basic4.w2erb
|
37
|
+
- lib/w2tags/try/public/w2/combobox.w2erb
|
38
|
+
- lib/w2tags/try/public/w2/diet.w2erb
|
39
|
+
- lib/w2tags/try/public/w2/diet1.w2erb
|
40
|
+
- lib/w2tags/try/public/w2/each.w2erb
|
41
|
+
- lib/w2tags/try/public/w2/each2.w2erb
|
42
|
+
- lib/w2tags/try/public/w2/html.hot.html
|
43
|
+
- lib/w2tags/try/public/w2/if.w2erb
|
44
|
+
- lib/w2tags/try/public/w2/layout.w2erb
|
45
|
+
- lib/w2tags/try/public/w2/layout1.w2erb
|
46
|
+
- lib/w2tags/try/public/w2/layout2.w2erb
|
47
|
+
- lib/w2tags/try/public/w2/nestli.w2erb
|
48
|
+
- lib/w2tags/try/public/w2/params.erb
|
49
|
+
- lib/w2tags/try/public/w2/params.w2erb
|
50
|
+
- lib/w2tags/try/public/w2/popup.w2erb
|
51
|
+
- lib/w2tags/try/public/w2/popup2.w2erb
|
52
|
+
- lib/w2tags/try/public/w2/upload.w2erb
|
53
|
+
- lib/w2tags/try/views/index.erb
|
54
|
+
- lib/w2tags/try/views/layout.erb
|
31
55
|
files:
|
32
56
|
- Manifest.txt
|
33
57
|
- README.rdoc
|
@@ -51,6 +75,31 @@ files:
|
|
51
75
|
- lib/w2tags/block/plain_text.rb
|
52
76
|
- lib/w2tags/block/remark.rb
|
53
77
|
- lib/w2tags/block/sass.rb
|
78
|
+
- lib/w2tags/try/try.rb
|
79
|
+
- lib/w2tags/try/public/javascripts/jquery.js
|
80
|
+
- lib/w2tags/try/public/w2/basic.w2erb
|
81
|
+
- lib/w2tags/try/public/w2/basic1.w2erb
|
82
|
+
- lib/w2tags/try/public/w2/basic2.w2erb
|
83
|
+
- lib/w2tags/try/public/w2/basic3.w2erb
|
84
|
+
- lib/w2tags/try/public/w2/basic4.w2erb
|
85
|
+
- lib/w2tags/try/public/w2/combobox.w2erb
|
86
|
+
- lib/w2tags/try/public/w2/diet.w2erb
|
87
|
+
- lib/w2tags/try/public/w2/diet1.w2erb
|
88
|
+
- lib/w2tags/try/public/w2/each.w2erb
|
89
|
+
- lib/w2tags/try/public/w2/each2.w2erb
|
90
|
+
- lib/w2tags/try/public/w2/html.hot.html
|
91
|
+
- lib/w2tags/try/public/w2/if.w2erb
|
92
|
+
- lib/w2tags/try/public/w2/layout.w2erb
|
93
|
+
- lib/w2tags/try/public/w2/layout1.w2erb
|
94
|
+
- lib/w2tags/try/public/w2/layout2.w2erb
|
95
|
+
- lib/w2tags/try/public/w2/nestli.w2erb
|
96
|
+
- lib/w2tags/try/public/w2/params.erb
|
97
|
+
- lib/w2tags/try/public/w2/params.w2erb
|
98
|
+
- lib/w2tags/try/public/w2/popup.w2erb
|
99
|
+
- lib/w2tags/try/public/w2/popup2.w2erb
|
100
|
+
- lib/w2tags/try/public/w2/upload.w2erb
|
101
|
+
- lib/w2tags/try/views/index.erb
|
102
|
+
- lib/w2tags/try/views/layout.erb
|
54
103
|
- hot/erb.hot
|
55
104
|
- hot/erb_base.hot
|
56
105
|
- hot/erb_form.hot
|