fl 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/fl/meta_helper.rb +4 -9
- data/lib/fl/constants.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74711238e4aff20c234ef930ac4d77084f9eef6d
|
4
|
+
data.tar.gz: 02733b9f531545ed491c2d80519e9ef78727f487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8a36630f2724095f6a34ca13eba29b94b51ec676e7c26158ad33f99456aa3e27a6c0adc1b39352d6a7197e717521a6535d6ef2559cbf1bef38f7b347d8c81fa
|
7
|
+
data.tar.gz: f42ab7b5b8fdf6f3702a866db676e554a89ee958941c9dba168f09cffe05e994eab09020ac3ecae73cc7bc7226384b7d97186bc69b68a5545b41cbfdc1b0bbd6
|
@@ -8,27 +8,22 @@ module FL
|
|
8
8
|
# Meta #
|
9
9
|
############
|
10
10
|
|
11
|
-
# Meta
|
12
|
-
# =>
|
11
|
+
# => Meta
|
12
|
+
# => SPLAT OPERATOR for multiple "when" cases -- http://stackoverflow.com/a/10197397/1143732
|
13
13
|
def meta type, *args
|
14
|
-
# js css title link keywords author description [robots googlebot msnbot] favicon
|
15
|
-
options = args.join(', ')
|
16
|
-
|
17
|
-
# Return Values
|
18
|
-
#-> SPLAT OPERATOR for multiple "when" cases -- http://stackoverflow.com/a/10197397/1143732
|
19
14
|
case type
|
20
15
|
when :js, :javascript, :javascripts, :script, :scripts
|
21
16
|
javascript_include_tag *args.compact #-> splat operator http://stackoverflow.com/questions/13795627/ruby-send-method-passing-multiple-parameters
|
22
17
|
when :css, :stylesheet, :stylesheets
|
23
18
|
stylesheet_link_tag *args.compact #-> splat operator http://stackoverflow.com/questions/13795627/ruby-send-method-passing-multiple-parameters
|
24
19
|
when :title
|
25
|
-
Haml::Engine.new("%title #{
|
20
|
+
Haml::Engine.new("%title #{args.join(' ')}").render
|
26
21
|
when :favicon
|
27
22
|
favicon_link_tag
|
28
23
|
when :csrf
|
29
24
|
csrf_meta_tags
|
30
25
|
else
|
31
|
-
Haml::Engine.new("%meta{ name: \"#{type}\", content: \"#{
|
26
|
+
Haml::Engine.new("%meta{ name: \"#{type}\", content: \"#{args.join(', ')}\" }").render #-> http://stackoverflow.com/questions/9143761/meta-descritpion-in-haml-with-outside-variable
|
32
27
|
end
|
33
28
|
end
|
34
29
|
|
data/lib/fl/constants.rb
CHANGED