padrino-helpers 0.10.3 → 0.10.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -2
- data/lib/padrino-helpers/asset_tag_helpers.rb +3 -0
- data/lib/padrino-helpers/form_helpers.rb +3 -0
- data/lib/padrino-helpers/format_helpers.rb +4 -1
- data/lib/padrino-helpers/number_helpers.rb +1 -0
- data/lib/padrino-helpers/output_helpers.rb +3 -0
- data/lib/padrino-helpers/output_helpers/erb_handler.rb +3 -0
- data/lib/padrino-helpers/output_helpers/haml_handler.rb +3 -0
- data/lib/padrino-helpers/output_helpers/slim_handler.rb +3 -0
- data/lib/padrino-helpers/render_helpers.rb +3 -0
- data/lib/padrino-helpers/tag_helpers.rb +3 -0
- data/lib/padrino-helpers/translation_helpers.rb +3 -0
- metadata +4 -28
data/README.rdoc
CHANGED
@@ -63,8 +63,8 @@ are three major functions for this category: <tt>tag</tt>, <tt>content_tag</tt>
|
|
63
63
|
The tag and content_tag are for building arbitrary html tags with a name and specified options. If
|
64
64
|
the tag contains 'content' within then <tt>content_tag</tt> is used. For example:
|
65
65
|
|
66
|
-
tag(:br, :style =>
|
67
|
-
content_tag(:p, "demo", :class =>
|
66
|
+
tag(:br, :style => 'clear:both') => <br style="clear:both" />
|
67
|
+
content_tag(:p, "demo", :class => 'light') => <p class="light">demo</p>
|
68
68
|
|
69
69
|
The input_tag is used to build tags that are related to accepting input from the user:
|
70
70
|
|
@@ -1,5 +1,8 @@
|
|
1
1
|
module Padrino
|
2
2
|
module Helpers
|
3
|
+
###
|
4
|
+
# Helpers related to formatting or manipulating text within templates.
|
5
|
+
#
|
3
6
|
module FormatHelpers
|
4
7
|
##
|
5
8
|
# Returns escaped text to protect against malicious content
|
@@ -206,7 +209,7 @@ module Padrino
|
|
206
209
|
# The words to be highlighted in the +text+.
|
207
210
|
# @param [Hash] options
|
208
211
|
# Formatting options for the highlight.
|
209
|
-
# @option options [String] :highlighter (
|
212
|
+
# @option options [String] :highlighter ('<strong class="highlight">\1</strong>')
|
210
213
|
# The html pattern for wrapping the highlighted words.
|
211
214
|
#
|
212
215
|
# @return [String] The text with the words specified wrapped with highlighted spans.
|
@@ -4,6 +4,9 @@ Slim::Engine.set_default_options(:buffer => '@_out_buf', :generator => Temple::G
|
|
4
4
|
module Padrino
|
5
5
|
module Helpers
|
6
6
|
module OutputHelpers
|
7
|
+
##
|
8
|
+
# Handler for reading and writing from a slim template.
|
9
|
+
#
|
7
10
|
class SlimHandler < AbstractHandler
|
8
11
|
attr_reader :output_buffer
|
9
12
|
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: padrino-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 49
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 0
|
8
|
-
- 10
|
9
|
-
- 3
|
10
|
-
version: 0.10.3
|
5
|
+
version: 0.10.4
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Padrino Team
|
@@ -18,8 +13,7 @@ autorequire:
|
|
18
13
|
bindir: bin
|
19
14
|
cert_chain: []
|
20
15
|
|
21
|
-
date: 2011-10-
|
22
|
-
default_executable:
|
16
|
+
date: 2011-10-12 00:00:00 Z
|
23
17
|
dependencies:
|
24
18
|
- !ruby/object:Gem::Dependency
|
25
19
|
name: padrino-core
|
@@ -29,12 +23,7 @@ dependencies:
|
|
29
23
|
requirements:
|
30
24
|
- - "="
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
|
33
|
-
segments:
|
34
|
-
- 0
|
35
|
-
- 10
|
36
|
-
- 3
|
37
|
-
version: 0.10.3
|
26
|
+
version: 0.10.4
|
38
27
|
type: :runtime
|
39
28
|
version_requirements: *id001
|
40
29
|
- !ruby/object:Gem::Dependency
|
@@ -45,10 +34,6 @@ dependencies:
|
|
45
34
|
requirements:
|
46
35
|
- - ~>
|
47
36
|
- !ruby/object:Gem::Version
|
48
|
-
hash: 7
|
49
|
-
segments:
|
50
|
-
- 0
|
51
|
-
- 6
|
52
37
|
version: "0.6"
|
53
38
|
type: :runtime
|
54
39
|
version_requirements: *id002
|
@@ -160,7 +145,6 @@ files:
|
|
160
145
|
- test/test_output_helpers.rb
|
161
146
|
- test/test_render_helpers.rb
|
162
147
|
- test/test_tag_helpers.rb
|
163
|
-
has_rdoc: true
|
164
148
|
homepage: http://www.padrinorb.com
|
165
149
|
licenses: []
|
166
150
|
|
@@ -174,25 +158,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
174
158
|
requirements:
|
175
159
|
- - ">="
|
176
160
|
- !ruby/object:Gem::Version
|
177
|
-
hash: 3
|
178
|
-
segments:
|
179
|
-
- 0
|
180
161
|
version: "0"
|
181
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
163
|
none: false
|
183
164
|
requirements:
|
184
165
|
- - ">="
|
185
166
|
- !ruby/object:Gem::Version
|
186
|
-
hash: 23
|
187
|
-
segments:
|
188
|
-
- 1
|
189
|
-
- 3
|
190
|
-
- 6
|
191
167
|
version: 1.3.6
|
192
168
|
requirements: []
|
193
169
|
|
194
170
|
rubyforge_project: padrino-helpers
|
195
|
-
rubygems_version: 1.
|
171
|
+
rubygems_version: 1.8.10
|
196
172
|
signing_key:
|
197
173
|
specification_version: 3
|
198
174
|
summary: Helpers for padrino
|