sections_rails 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sections_rails/version.rb +1 -1
- data/lib/sections_rails.rb +3 -3
- metadata +7 -7
data/lib/sections_rails.rb
CHANGED
@@ -47,14 +47,14 @@ module SectionsRails
|
|
47
47
|
out << content_tag(:div, '', :class => filename)
|
48
48
|
elsif options[:partial]
|
49
49
|
# some value for :partial given --> render the given partial.
|
50
|
-
out << render(:partial => "/../sections/#{directory}#{filename}/#{filename}")
|
50
|
+
out << render(:partial => "/../sections/#{directory}#{filename}/#{filename}", :locals => options[:locals])
|
51
51
|
else
|
52
|
-
# :partial => false given --> render nothing
|
52
|
+
# :partial => false or nil given --> render nothing
|
53
53
|
end
|
54
54
|
else
|
55
55
|
# No :partial option given --> render the file or tag per convention.
|
56
56
|
if File.exists?("#{partial_path}.erb") || File.exists?("#{partial_path}.haml")
|
57
|
-
out << render(:partial => "/../sections/#{directory}#{filename}/#{filename}")
|
57
|
+
out << render(:partial => "/../sections/#{directory}#{filename}/#{filename}", :locals => options[:locals])
|
58
58
|
else
|
59
59
|
out << content_tag(:div, '', :class => filename)
|
60
60
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sections_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-06-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70274490604960 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.1'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70274490604960
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
requirement: &
|
27
|
+
requirement: &70274490604500 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70274490604500
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: sqlite3
|
38
|
-
requirement: &
|
38
|
+
requirement: &70274490600400 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70274490600400
|
47
47
|
description: Sections_rails adds infrastructure to the view layer of Ruby on Rails.
|
48
48
|
It allows to define and use the HTML, CSS, and JavaScript code of dedicated sections
|
49
49
|
of pages together in one place.
|