w2tags 0.9.3 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +340 -340
- data/LICENSE +6 -6
- data/MIT-LICENSE +18 -18
- data/Manifest.txt +28 -25
- data/README.rdoc +27 -21
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/bin/w2tags +173 -143
- data/doc/History.rdoc +88 -0
- data/hot/erb.hot +18 -156
- data/hot/erb_base.hot +164 -0
- data/hot/html.hot +30 -31
- data/hot/rails/scaffold.hot +15 -15
- data/hot/vm.hot +8 -8
- data/hot/vm2.hot +34 -34
- data/hot/vm_crud.hot +34 -34
- data/hot/vm_popup.hot +74 -74
- data/lib/tags2w.rb +263 -0
- data/lib/w2tags/block/block_hot.rb +37 -0
- data/lib/w2tags/block/plain_text.rb +57 -57
- data/lib/w2tags/block/remark.rb +37 -37
- data/lib/w2tags/block/sass.rb +68 -66
- data/lib/w2tags/merb_hook.rb +15 -15
- data/lib/w2tags/parser.rb +17 -8
- data/lib/w2tags/rails_hook.rb +15 -15
- data/lib/w2tags/sinatra_hook.rb +74 -50
- data/lib/w2tags.rb +100 -100
- data/plugins/{/w2tags/ → w2tags}/README +2 -2
- data/plugins/{/w2tags//generators//w2scaffold/ → w2tags/generators/w2scaffold}/USAGE +29 -29
- data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/controller.rb +85 -85
- data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/functional_test.rb +45 -45
- data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/helper.rb +2 -2
- data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/helper_test.rb +4 -4
- data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/layout.html.erb +17 -17
- data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/style.css +54 -54
- data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/view_edit.html.erb +17 -17
- data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/view_edit.html.w2erb +16 -16
- data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/view_index.html.erb +23 -23
- data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/view_index.html.w2erb +13 -13
- data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/view_new.html.erb +16 -16
- data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/view_new.html.w2erb +15 -15
- data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/view_show.html.erb +9 -9
- data/plugins/{/w2tags//generators//w2scaffold//templates/ → w2tags/generators/w2scaffold/templates}/view_show.html.w2erb +8 -8
- data/plugins/{/w2tags//generators//w2scaffold/ → w2tags/generators/w2scaffold}/w2scaffold_generator.rb +106 -106
- data/plugins/{/w2tags/ → w2tags}/install.rb +0 -0
- data/tasks/ann.rake +81 -81
- data/tasks/bones.rake +21 -21
- data/tasks/gem.rake +126 -126
- data/tasks/git.rake +41 -41
- data/tasks/manifest.rake +49 -49
- data/tasks/notes.rake +28 -28
- data/tasks/post_load.rake +39 -39
- data/tasks/rdoc.rake +51 -51
- data/tasks/rubyforge.rake +57 -57
- data/tasks/setup.rb +268 -268
- data/tasks/spec.rake +55 -55
- data/tasks/svn.rake +48 -48
- data/tasks/test.rake +38 -38
- data/test/vars.hot +30 -30
- data/test/w2tags_basic_usability.rb +187 -187
- data/test/w2tags_enlightning.rb +42 -42
- data/test/w2tags_hot.rb +85 -85
- data/test/w2tags_hot_var.rb +115 -115
- metadata +28 -30
data/hot/erb.hot
CHANGED
@@ -1,156 +1,18 @@
|
|
1
|
-
>>initialize
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
!hot!
|
10
|
-
!hot!
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
!hot!
|
15
|
-
!hot!
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
-end
|
20
|
-
|
21
|
-
>>_elsif
|
22
|
-
- elsif $0
|
23
|
-
-end
|
24
|
-
|
25
|
-
>>_else
|
26
|
-
- else
|
27
|
-
-end
|
28
|
-
|
29
|
-
>>_
|
30
|
-
!/
|
31
|
-
<% $* %>
|
32
|
-
|
33
|
-
>>_-
|
34
|
-
!/
|
35
|
-
<% $* %>
|
36
|
-
-end
|
37
|
-
|
38
|
-
>>=
|
39
|
-
!/
|
40
|
-
<%= $* %>
|
41
|
-
|
42
|
-
>>_=
|
43
|
-
!/
|
44
|
-
<%= $* %>
|
45
|
-
-end
|
46
|
-
|
47
|
-
>>_for
|
48
|
-
!/
|
49
|
-
<% for $* %>
|
50
|
-
-end
|
51
|
-
|
52
|
-
>>_each
|
53
|
-
!/
|
54
|
-
- $0.each do |$1|
|
55
|
-
-end
|
56
|
-
|
57
|
-
>>_eachs
|
58
|
-
!/
|
59
|
-
- $0.sort.each do |$1|
|
60
|
-
-end
|
61
|
-
|
62
|
-
>>_each2
|
63
|
-
!/
|
64
|
-
- $0.each_with_index do |$1|
|
65
|
-
-end
|
66
|
-
|
67
|
-
>>_times
|
68
|
-
!/
|
69
|
-
- $0.times do $1
|
70
|
-
-end
|
71
|
-
|
72
|
-
>>_end
|
73
|
-
<</
|
74
|
-
<% end %>
|
75
|
-
|
76
|
-
>>_a
|
77
|
-
%a$${href="*&"} $*
|
78
|
-
|
79
|
-
>>_a2
|
80
|
-
%a$${href="=$1"} $0
|
81
|
-
|
82
|
-
>>br
|
83
|
-
<br*all**@/>
|
84
|
-
|
85
|
-
>>hr
|
86
|
-
<hr*all**@/>
|
87
|
-
|
88
|
-
>>img
|
89
|
-
<img src="$0" ~alt="$1"~ />
|
90
|
-
|
91
|
-
>>img=
|
92
|
-
<img src="=$0" ~alt="$1"~ />
|
93
|
-
|
94
|
-
>>html_title
|
95
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
|
96
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us" >
|
97
|
-
<head>
|
98
|
-
<title>$0</title>
|
99
|
-
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
100
|
-
|
101
|
-
>>p_a
|
102
|
-
%p
|
103
|
-
%a $*
|
104
|
-
~/
|
105
|
-
|
106
|
-
>>r_each
|
107
|
-
!/
|
108
|
-
<% $1.each do |$0| %>
|
109
|
-
-end
|
110
|
-
|
111
|
-
>>for_in
|
112
|
-
!/
|
113
|
-
<% for $0 in $1 %>
|
114
|
-
-end
|
115
|
-
|
116
|
-
>>not
|
117
|
-
- unless $*
|
118
|
-
|
119
|
-
>>else
|
120
|
-
!/
|
121
|
-
<% else %>
|
122
|
-
-end
|
123
|
-
|
124
|
-
>>/
|
125
|
-
!/
|
126
|
-
<% end %>
|
127
|
-
|
128
|
-
>>_code
|
129
|
-
!/
|
130
|
-
-end_code
|
131
|
-
-!!
|
132
|
-
<%
|
133
|
-
|
134
|
-
>>_end_code
|
135
|
-
<</
|
136
|
-
%>
|
137
|
-
|
138
|
-
>>script
|
139
|
-
<script *all**@type="text/javascript" charset="utf-8">
|
140
|
-
%script_end
|
141
|
-
|
142
|
-
>>script_end
|
143
|
-
<</
|
144
|
-
</script>
|
145
|
-
|
146
|
-
>>input
|
147
|
-
<input *all*~value="$0"~/>
|
148
|
-
|
149
|
-
>>text
|
150
|
-
<input *all*type="text"~value="$0"~/>
|
151
|
-
|
152
|
-
>>submit
|
153
|
-
<input *all*type="submit"~value="$0"~/>
|
154
|
-
|
155
|
-
>>post
|
156
|
-
%form$:$#.lelouch.*.{*@method="post"~action="$0"~}
|
1
|
+
>>initialize
|
2
|
+
!hot!html
|
3
|
+
!hot!erb_base
|
4
|
+
|
5
|
+
>>finallize
|
6
|
+
,/
|
7
|
+
|
8
|
+
>>_merb_table
|
9
|
+
!hot!erb_merb
|
10
|
+
!hot!erb_table
|
11
|
+
!hot!erb_jquery
|
12
|
+
|
13
|
+
>>_merb_form
|
14
|
+
!hot!erb_merb
|
15
|
+
!hot!erb_form
|
16
|
+
!hot!erb_jquery
|
17
|
+
|
18
|
+
|
data/hot/erb_base.hot
ADDED
@@ -0,0 +1,164 @@
|
|
1
|
+
>>_js
|
2
|
+
%js /javascripts/$0
|
3
|
+
|
4
|
+
>>_css
|
5
|
+
%css /stylesheets/$0
|
6
|
+
|
7
|
+
>>comment
|
8
|
+
-!!
|
9
|
+
<!--
|
10
|
+
<</
|
11
|
+
\-->
|
12
|
+
|
13
|
+
>>_if
|
14
|
+
- if $0
|
15
|
+
-end
|
16
|
+
|
17
|
+
>>_unless
|
18
|
+
- unless $0
|
19
|
+
-end
|
20
|
+
|
21
|
+
>>_elsif
|
22
|
+
- elsif $0
|
23
|
+
-end
|
24
|
+
|
25
|
+
>>_else
|
26
|
+
- else
|
27
|
+
-end
|
28
|
+
|
29
|
+
>>_
|
30
|
+
!/
|
31
|
+
<% $* %>
|
32
|
+
|
33
|
+
>>_-
|
34
|
+
!/
|
35
|
+
<% $* %>
|
36
|
+
-end
|
37
|
+
|
38
|
+
>>=
|
39
|
+
!/
|
40
|
+
<%= $* %>
|
41
|
+
|
42
|
+
>>_=
|
43
|
+
!/
|
44
|
+
<%= $* %>
|
45
|
+
-end
|
46
|
+
|
47
|
+
>>_for
|
48
|
+
!/
|
49
|
+
<% for $* %>
|
50
|
+
-end
|
51
|
+
|
52
|
+
>>_each
|
53
|
+
!/
|
54
|
+
- $0.each do |$1|
|
55
|
+
-end
|
56
|
+
|
57
|
+
>>_eachs
|
58
|
+
!/
|
59
|
+
- $0.sort.each do |$1|
|
60
|
+
-end
|
61
|
+
|
62
|
+
>>_each2
|
63
|
+
!/
|
64
|
+
- $0.each_with_index do |$1|
|
65
|
+
-end
|
66
|
+
|
67
|
+
>>_times
|
68
|
+
!/
|
69
|
+
- $0.times do $1
|
70
|
+
-end
|
71
|
+
|
72
|
+
>>_end
|
73
|
+
<</
|
74
|
+
<% end %>
|
75
|
+
|
76
|
+
>>_a
|
77
|
+
%a$${href="*&"} $*
|
78
|
+
|
79
|
+
>>_a2
|
80
|
+
%a$${href="=$1"} $0
|
81
|
+
|
82
|
+
>>br
|
83
|
+
<br *all**@/>
|
84
|
+
|
85
|
+
>>hr
|
86
|
+
<hr *all**@/>
|
87
|
+
|
88
|
+
>>img
|
89
|
+
<img *all*src="$0" ~alt="$1"~ />
|
90
|
+
|
91
|
+
>>img=
|
92
|
+
<img *all*src="=$0" ~alt="$1"~ />
|
93
|
+
|
94
|
+
>>html_title
|
95
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
|
96
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us" >
|
97
|
+
<head>
|
98
|
+
<title>$0</title>
|
99
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
100
|
+
|
101
|
+
>>p_a
|
102
|
+
%p
|
103
|
+
%a $*
|
104
|
+
~/
|
105
|
+
|
106
|
+
>>r_each
|
107
|
+
!/
|
108
|
+
<% $1.each do |$0| %>
|
109
|
+
-end
|
110
|
+
|
111
|
+
>>for_in
|
112
|
+
!/
|
113
|
+
<% for $0 in $1 %>
|
114
|
+
-end
|
115
|
+
|
116
|
+
>>not
|
117
|
+
- unless $*
|
118
|
+
|
119
|
+
>>else
|
120
|
+
!/
|
121
|
+
<% else %>
|
122
|
+
-end
|
123
|
+
|
124
|
+
>>/
|
125
|
+
!/
|
126
|
+
<% end %>
|
127
|
+
|
128
|
+
>>_code
|
129
|
+
!/
|
130
|
+
-end_code
|
131
|
+
-!!
|
132
|
+
<%
|
133
|
+
|
134
|
+
>>_end_code
|
135
|
+
<</
|
136
|
+
%>
|
137
|
+
|
138
|
+
>>script
|
139
|
+
<script *all**@type="text/javascript" charset="utf-8">
|
140
|
+
%script_end
|
141
|
+
|
142
|
+
>>script_end
|
143
|
+
<</
|
144
|
+
</script>
|
145
|
+
|
146
|
+
>>input
|
147
|
+
<input *all*~value="$0"~/>
|
148
|
+
|
149
|
+
>>text
|
150
|
+
<input *all*type="text"~value="$0"~/>
|
151
|
+
|
152
|
+
>>submit
|
153
|
+
<input *all*type="submit"~value="$0"~/>
|
154
|
+
|
155
|
+
>>post
|
156
|
+
%form$:$#.lelouch.*.{*@method="post"~action="$0"~}
|
157
|
+
|
158
|
+
>>_form_tag
|
159
|
+
<% form_tag($0) do |$1| %>
|
160
|
+
-end
|
161
|
+
|
162
|
+
>>_form_for
|
163
|
+
<% form_for($0) do |$1| %>
|
164
|
+
-end
|
data/hot/html.hot
CHANGED
@@ -1,31 +1,30 @@
|
|
1
|
-
>>initialize
|
2
|
-
|
3
|
-
|
4
|
-
%html{xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"}
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
<input *all*~value="$0"~/>
|
1
|
+
>>initialize
|
2
|
+
\<!DOCTYPE html PUBLIC
|
3
|
+
\"-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" >
|
4
|
+
%html{xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"}
|
5
|
+
%head
|
6
|
+
%body$*
|
7
|
+
|
8
|
+
>>finallize
|
9
|
+
,/
|
10
|
+
|
11
|
+
>>_utf-8
|
12
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
13
|
+
|
14
|
+
>>_feed
|
15
|
+
<link rel="alternate" href="$0" title="Primary Feed" type="application/atom+xml" />
|
16
|
+
|
17
|
+
>>css
|
18
|
+
<link rel="stylesheet" href="$0.css" type="text/css" media="screen, projection" />
|
19
|
+
|
20
|
+
>>js
|
21
|
+
<script type="text/javascript" src="$0.js" > </script>
|
22
|
+
|
23
|
+
>>_js
|
24
|
+
%js $0
|
25
|
+
|
26
|
+
>>_css
|
27
|
+
%css $0
|
28
|
+
|
29
|
+
>>input
|
30
|
+
<input *all*~value="$0"~/>
|
data/hot/rails/scaffold.hot
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
>>_th
|
2
|
-
%th <b>$0.capitalize.gsub('_',' ')~</b>
|
3
|
-
|
4
|
-
>>_td
|
5
|
-
%td$$ h &rec!.$0
|
6
|
-
|
7
|
-
>>_td_link_crud
|
8
|
-
~^ %td link_to $0
|
9
|
-
^= "Show", &rec!
|
10
|
-
^= "Edit", edit_&rec!_path(&rec!)
|
11
|
-
^= "Destroy", &rec!, :confirm => "Are you sure?", :method => :delete
|
12
|
-
|
13
|
-
>>_each_tr
|
14
|
-
-each $*
|
15
|
-
%tr
|
1
|
+
>>_th
|
2
|
+
%th <b>$0.capitalize.gsub('_',' ')~</b>
|
3
|
+
|
4
|
+
>>_td
|
5
|
+
%td$$ h &rec!.$0
|
6
|
+
|
7
|
+
>>_td_link_crud
|
8
|
+
~^ %td link_to $0
|
9
|
+
^= "Show", &rec!
|
10
|
+
^= "Edit", edit_&rec!_path(&rec!)
|
11
|
+
^= "Destroy", &rec!, :confirm => "Are you sure?", :method => :delete
|
12
|
+
|
13
|
+
>>_each_tr
|
14
|
+
-each $*
|
15
|
+
%tr
|
data/hot/vm.hot
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
>>initialize
|
2
|
-
!hot!htm
|
3
|
-
!hot!jquery
|
4
|
-
!hot!vm2
|
5
|
-
!hot!vm_crud
|
6
|
-
!hot!vm_popup
|
7
|
-
|
8
|
-
>>finallize
|
1
|
+
>>initialize
|
2
|
+
!hot!htm
|
3
|
+
!hot!jquery
|
4
|
+
!hot!vm2
|
5
|
+
!hot!vm_crud
|
6
|
+
!hot!vm_popup
|
7
|
+
|
8
|
+
>>finallize
|
9
9
|
,/
|
data/hot/vm2.hot
CHANGED
@@ -1,34 +1,34 @@
|
|
1
|
-
>>css
|
2
|
-
<link rel="stylesheet" href="$siteRoot/Content/css/$0.css" type="text/css" media="screen, projection" />
|
3
|
-
|
4
|
-
>>csq
|
5
|
-
<link rel="stylesheet" href="$siteRoot/Content/css/jquery.$0.css" type="text/css" media="screen, projection" />
|
6
|
-
|
7
|
-
>>js
|
8
|
-
<script type="text/javascript" src="$siteRoot/Content/js/$0.js" > </script>
|
9
|
-
|
10
|
-
>>jq
|
11
|
-
<script type="text/javascript" src="$siteRoot/Content/js/jquery.$0.js" > </script>
|
12
|
-
|
13
|
-
>>_capture
|
14
|
-
#capturefor($0)
|
15
|
-
<</
|
16
|
-
\#end
|
17
|
-
|
18
|
-
>>_part
|
19
|
-
#parse("$0.vm")
|
20
|
-
|
21
|
-
>>_set
|
22
|
-
#set($0)
|
23
|
-
|
24
|
-
>>_for
|
25
|
-
#foreach($0)
|
26
|
-
<</
|
27
|
-
\#end
|
28
|
-
|
29
|
-
>>_a
|
30
|
-
%a*opt*.h{href="#"} Ajax
|
31
|
-
|
32
|
-
>>_button
|
33
|
-
%input#$#.btncrud{type="button" value="$0"}/
|
34
|
-
|
1
|
+
>>css
|
2
|
+
<link rel="stylesheet" href="$siteRoot/Content/css/$0.css" type="text/css" media="screen, projection" />
|
3
|
+
|
4
|
+
>>csq
|
5
|
+
<link rel="stylesheet" href="$siteRoot/Content/css/jquery.$0.css" type="text/css" media="screen, projection" />
|
6
|
+
|
7
|
+
>>js
|
8
|
+
<script type="text/javascript" src="$siteRoot/Content/js/$0.js" > </script>
|
9
|
+
|
10
|
+
>>jq
|
11
|
+
<script type="text/javascript" src="$siteRoot/Content/js/jquery.$0.js" > </script>
|
12
|
+
|
13
|
+
>>_capture
|
14
|
+
#capturefor($0)
|
15
|
+
<</
|
16
|
+
\#end
|
17
|
+
|
18
|
+
>>_part
|
19
|
+
#parse("$0.vm")
|
20
|
+
|
21
|
+
>>_set
|
22
|
+
#set($0)
|
23
|
+
|
24
|
+
>>_for
|
25
|
+
#foreach($0)
|
26
|
+
<</
|
27
|
+
\#end
|
28
|
+
|
29
|
+
>>_a
|
30
|
+
%a*opt*.h{href="#"} Ajax
|
31
|
+
|
32
|
+
>>_button
|
33
|
+
%input#$#.btncrud{type="button" value="$0"}/
|
34
|
+
|
data/hot/vm_crud.hot
CHANGED
@@ -1,34 +1,34 @@
|
|
1
|
-
>>pagination
|
2
|
-
%partials list.page
|
3
|
-
%br/
|
4
|
-
%br/
|
5
|
-
%table.box_grid
|
6
|
-
%pagination_end~
|
7
|
-
|
8
|
-
>>pagination_end
|
9
|
-
<</
|
10
|
-
!run!
|
11
|
-
%partials list.page
|
12
|
-
<br/>
|
13
|
-
|
14
|
-
>>_th
|
15
|
-
<th class="header" col=$0 sort="#if($col == '$0')$!sort#end">$1<img class="isort" src="$siteRoot/content/img/#if($col == '$0')$isort#else$isortdef#end"/></th>
|
16
|
-
|
17
|
-
>>_td
|
18
|
-
<td><div class="c$0">$1</div></td>
|
19
|
-
|
20
|
-
>>_for_with_no
|
21
|
-
#set($no = $records.FirstItem - 1)
|
22
|
-
#foreach($0)
|
23
|
-
#set($no = $no + 1)
|
24
|
-
<</
|
25
|
-
\#end
|
26
|
-
|
27
|
-
>>partials
|
28
|
-
#parse("partials/$0.vm")
|
29
|
-
|
30
|
-
>>left
|
31
|
-
%div{style="float: left;"}
|
32
|
-
|
33
|
-
>>_input
|
34
|
-
%input:$:#$:{$0}/
|
1
|
+
>>pagination
|
2
|
+
%partials list.page
|
3
|
+
%br/
|
4
|
+
%br/
|
5
|
+
%table.box_grid
|
6
|
+
%pagination_end~
|
7
|
+
|
8
|
+
>>pagination_end
|
9
|
+
<</
|
10
|
+
!run!
|
11
|
+
%partials list.page
|
12
|
+
<br/>
|
13
|
+
|
14
|
+
>>_th
|
15
|
+
<th class="header" col=$0 sort="#if($col == '$0')$!sort#end">$1<img class="isort" src="$siteRoot/content/img/#if($col == '$0')$isort#else$isortdef#end"/></th>
|
16
|
+
|
17
|
+
>>_td
|
18
|
+
<td><div class="c$0">$1</div></td>
|
19
|
+
|
20
|
+
>>_for_with_no
|
21
|
+
#set($no = $records.FirstItem - 1)
|
22
|
+
#foreach($0)
|
23
|
+
#set($no = $no + 1)
|
24
|
+
<</
|
25
|
+
\#end
|
26
|
+
|
27
|
+
>>partials
|
28
|
+
#parse("partials/$0.vm")
|
29
|
+
|
30
|
+
>>left
|
31
|
+
%div{style="float: left;"}
|
32
|
+
|
33
|
+
>>_input
|
34
|
+
%input:$:#$:{$0}/
|