sinatra-content-for2 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +7 -3
- data/sinatra-content-for2.gemspec +3 -3
- metadata +11 -4
data/README.rdoc
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
=
|
1
|
+
= ContentFor2
|
2
2
|
|
3
3
|
Small extension for the Sinatra[http://sinatrarb.com] web framework
|
4
4
|
that allows you to use the following helpers in your views:
|
@@ -27,12 +27,14 @@ an '=' block (<tt><%= %></tt>), but with Haml it uses <tt>= yield_content</tt>.
|
|
27
27
|
Using an '=' block in ERB will output the content twice for each block,
|
28
28
|
so if you have problems with that, make sure to check for this.
|
29
29
|
|
30
|
+
<B>Note</b> Use <tt><%= yield_content ... %></tt> in Erubis.
|
31
|
+
|
30
32
|
== Usage
|
31
33
|
|
32
34
|
If you're writing "classic" style apps, then requring
|
33
|
-
<tt>sinatra/
|
35
|
+
<tt>sinatra/content_for2</tt> should be enough. If you're writing
|
34
36
|
"classy" apps, then you also need to call
|
35
|
-
<tt>helpers Sinatra::
|
37
|
+
<tt>helpers Sinatra::ContentFor2</tt> in your app definition.
|
36
38
|
|
37
39
|
== And how is this useful?
|
38
40
|
|
@@ -47,3 +49,5 @@ be added to the layout.
|
|
47
49
|
|
48
50
|
Code by foca[http://github.com/foca], inspired on the Ruby on Rails
|
49
51
|
helpers with the same name. Haml support by mattly[http://github.com/mattly].
|
52
|
+
Erubis support by hiroyuki[http://github.com/hryk].
|
53
|
+
Bundler/etc. unicode compatibility by arnabc[https://github.com/arnabc] and akzhan[https://github.com/akzhan].
|
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "sinatra-content-for2"
|
5
|
-
s.version = "0.2.
|
6
|
-
s.date = "
|
5
|
+
s.version = "0.2.3"
|
6
|
+
s.date = "2011-01-13"
|
7
7
|
|
8
8
|
s.description = "Small Sinatra extension to add a content_for helper similar to Rails'"
|
9
9
|
s.summary = "Small Sinatra extension to add a content_for helper similar to Rails'"
|
10
|
-
s.homepage = "
|
10
|
+
s.homepage = "https://github.com/Undev/sinatra-content-for2"
|
11
11
|
|
12
12
|
s.authors = ["Nicolás Sanguinetti"]
|
13
13
|
s.email = "contacto@nicolassanguinetti.info"
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-content-for2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 17
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- "Nicol\xC3\xA1s Sanguinetti"
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date:
|
18
|
+
date: 2011-01-13 00:00:00 +03:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
@@ -25,6 +26,7 @@ dependencies:
|
|
25
26
|
requirements:
|
26
27
|
- - ">="
|
27
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
28
30
|
segments:
|
29
31
|
- 0
|
30
32
|
version: "0"
|
@@ -38,6 +40,7 @@ dependencies:
|
|
38
40
|
requirements:
|
39
41
|
- - ">="
|
40
42
|
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
41
44
|
segments:
|
42
45
|
- 0
|
43
46
|
version: "0"
|
@@ -51,6 +54,7 @@ dependencies:
|
|
51
54
|
requirements:
|
52
55
|
- - ">="
|
53
56
|
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
54
58
|
segments:
|
55
59
|
- 0
|
56
60
|
version: "0"
|
@@ -64,6 +68,7 @@ dependencies:
|
|
64
68
|
requirements:
|
65
69
|
- - ">="
|
66
70
|
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
67
72
|
segments:
|
68
73
|
- 0
|
69
74
|
version: "0"
|
@@ -85,7 +90,7 @@ files:
|
|
85
90
|
- lib/sinatra/content_for2.rb
|
86
91
|
- test/content_for_test.rb
|
87
92
|
has_rdoc: true
|
88
|
-
homepage:
|
93
|
+
homepage: https://github.com/Undev/sinatra-content-for2
|
89
94
|
licenses: []
|
90
95
|
|
91
96
|
post_install_message:
|
@@ -98,6 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
98
103
|
requirements:
|
99
104
|
- - ">="
|
100
105
|
- !ruby/object:Gem::Version
|
106
|
+
hash: 3
|
101
107
|
segments:
|
102
108
|
- 0
|
103
109
|
version: "0"
|
@@ -106,6 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
112
|
requirements:
|
107
113
|
- - ">="
|
108
114
|
- !ruby/object:Gem::Version
|
115
|
+
hash: 3
|
109
116
|
segments:
|
110
117
|
- 0
|
111
118
|
version: "0"
|