html5-slim-rails 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -1
- data/lib/generators/html5/install/install_generator.rb +4 -0
- data/lib/generators/html5/install/templates/public/404.html +38 -0
- data/lib/generators/html5/install/templates/public/apple-touch-icon-114x114-precomposed.png +0 -0
- data/lib/generators/html5/install/templates/public/apple-touch-icon-57x57-precomposed.png +0 -0
- data/lib/generators/html5/install/templates/public/apple-touch-icon-72x72-precomposed.png +0 -0
- data/lib/generators/html5/install/templates/public/apple-touch-icon-precomposed.png +0 -0
- data/lib/generators/html5/install/templates/public/apple-touch-icon.png +0 -0
- data/lib/generators/html5/install/templates/public/crossdomain.xml +25 -0
- data/lib/generators/html5/install/templates/public/favicon.ico +0 -0
- data/lib/generators/html5/install/templates/public/humans.txt +43 -0
- data/lib/generators/html5/install/templates/public/robots.txt +5 -0
- data/lib/generators/html5/install/templates/views/application/_javascripts.html.slim +4 -4
- data/lib/html5/slim_rails/boilerplate_helper.rb +0 -21
- data/lib/html5/slim_rails/version.rb +1 -2
- metadata +18 -8
data/README.md
CHANGED
@@ -1,4 +1,12 @@
|
|
1
1
|
Html5 Rails
|
2
2
|
=========================
|
3
3
|
|
4
|
-
Rewrite of compass-html5-boilerplate that does just the haml bits, but in slim
|
4
|
+
Rewrite of compass-html5-boilerplate that does just the haml bits, but in slim.
|
5
|
+
|
6
|
+
To use, add "html5-slim-rails" to you gem file, bundle install, then run:
|
7
|
+
|
8
|
+
$ rails g html5:install
|
9
|
+
|
10
|
+
The boilerplate includes example code to fall back to local jquery, if you need it.
|
11
|
+
Make sure jquery is available if you use this option. (Included by jquery-rails,
|
12
|
+
but by default only if the asset pipeline is available.)
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<title>Page Not Found :(</title>
|
6
|
+
<style>
|
7
|
+
body { text-align: center;}
|
8
|
+
h1 { font-size: 50px; text-align: center }
|
9
|
+
span[frown] { transform: rotate(90deg); display:inline-block; color: #bbb; }
|
10
|
+
body { font: 20px Constantia, 'Hoefler Text', "Adobe Caslon Pro", Baskerville, Georgia, Times, serif; color: #999; text-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5); }
|
11
|
+
::-moz-selection{ background:#FF5E99; color:#fff; }
|
12
|
+
::selection { background:#FF5E99; color:#fff; }
|
13
|
+
article {display:block; text-align: left; width: 500px; margin: 0 auto; }
|
14
|
+
|
15
|
+
a { color: rgb(36, 109, 56); text-decoration:none; }
|
16
|
+
a:hover { color: rgb(96, 73, 141) ; text-shadow: 2px 2px 2px rgba(36, 109, 56, 0.5); }
|
17
|
+
</style>
|
18
|
+
</head>
|
19
|
+
<body>
|
20
|
+
<article>
|
21
|
+
<h1>Not found <span frown>:(</span></h1>
|
22
|
+
<div>
|
23
|
+
<p>Sorry, but the page you were trying to view does not exist.</p>
|
24
|
+
<p>It looks like this was the result of either:</p>
|
25
|
+
<ul>
|
26
|
+
<li>a mistyped address</li>
|
27
|
+
<li>an out-of-date link</li>
|
28
|
+
</ul>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<script>
|
32
|
+
var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),
|
33
|
+
GOOG_FIXURL_SITE = location.host;
|
34
|
+
</script>
|
35
|
+
<script src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
|
36
|
+
</article>
|
37
|
+
</body>
|
38
|
+
</html>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
|
3
|
+
<cross-domain-policy>
|
4
|
+
|
5
|
+
|
6
|
+
<!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
|
7
|
+
|
8
|
+
<!-- Most restrictive policy: -->
|
9
|
+
<site-control permitted-cross-domain-policies="none"/>
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
<!-- Least restrictive policy: -->
|
14
|
+
<!--
|
15
|
+
<site-control permitted-cross-domain-policies="all"/>
|
16
|
+
<allow-access-from domain="*" to-ports="*" secure="false"/>
|
17
|
+
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
|
18
|
+
-->
|
19
|
+
<!--
|
20
|
+
If you host a crossdomain.xml file with allow-access-from domain="*"
|
21
|
+
and don’t understand all of the points described here, you probably
|
22
|
+
have a nasty security vulnerability. ~ simon willison
|
23
|
+
-->
|
24
|
+
|
25
|
+
</cross-domain-policy>
|
Binary file
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/* the humans responsible & colophon */
|
2
|
+
/* humanstxt.org */
|
3
|
+
|
4
|
+
|
5
|
+
/* TEAM */
|
6
|
+
<your title>: <your name>
|
7
|
+
Site:
|
8
|
+
Twitter:
|
9
|
+
Location:
|
10
|
+
|
11
|
+
/* THANKS */
|
12
|
+
Names (& URL):
|
13
|
+
|
14
|
+
/* SITE */
|
15
|
+
Standards: HTML5, CSS3
|
16
|
+
Components: Modernizr, jQuery
|
17
|
+
Software:
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
-o/-
|
22
|
+
+oo//-
|
23
|
+
:ooo+//:
|
24
|
+
-ooooo///-
|
25
|
+
/oooooo//:
|
26
|
+
:ooooooo+//-
|
27
|
+
-+oooooooo///-
|
28
|
+
-://////////////+oooooooooo++////////////::
|
29
|
+
:+ooooooooooooooooooooooooooooooooooooo+:::-
|
30
|
+
-/+ooooooooooooooooooooooooooooooo+/::////:-
|
31
|
+
-:+oooooooooooooooooooooooooooo/::///////:-
|
32
|
+
--/+ooooooooooooooooooooo+::://////:-
|
33
|
+
-:+ooooooooooooooooo+:://////:--
|
34
|
+
/ooooooooooooooooo+//////:-
|
35
|
+
-ooooooooooooooooooo////-
|
36
|
+
/ooooooooo+oooooooooo//:
|
37
|
+
:ooooooo+/::/+oooooooo+//-
|
38
|
+
-oooooo/::///////+oooooo///-
|
39
|
+
/ooo+::://////:---:/+oooo//:
|
40
|
+
-o+/::///////:- -:/+o+//-
|
41
|
+
:-:///////:- -:/://
|
42
|
+
-////:- --//:
|
43
|
+
-- -:
|
@@ -4,13 +4,13 @@
|
|
4
4
|
/ - if !google_api_key.blank?
|
5
5
|
/ = javascript_include_tag "//www.google.com/jsapi?key=#{google_api_key}"
|
6
6
|
/ :javascript
|
7
|
-
/ google.load(#{ remote_jquery("1.
|
7
|
+
/ google.load(#{ remote_jquery("1.7") });
|
8
8
|
/ - else
|
9
|
-
/ = javascript_include_tag "//ajax.googleapis.com/ajax/libs/jquery/#{ local_jquery("1.
|
9
|
+
/ = javascript_include_tag "//ajax.googleapis.com/ajax/libs/jquery/#{ local_jquery("1.7") }"
|
10
10
|
|
11
|
-
/ fall back to
|
11
|
+
/ fall back to jQuery-rails if necessary
|
12
12
|
/ :javascript
|
13
|
-
/ window.jQuery || document.write("<script src='/
|
13
|
+
/ window.jQuery || document.write("<script src='/assets/jquery.min.js'>\x3C/script>")
|
14
14
|
|
15
15
|
= javascript_include_tag "application"
|
16
16
|
|
@@ -2,27 +2,6 @@ module Html5
|
|
2
2
|
module SlimRails
|
3
3
|
module BoilerplateHelper
|
4
4
|
|
5
|
-
# Create a named haml tag to wrap IE conditional around a block
|
6
|
-
# http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither
|
7
|
-
def ie_tag(name=:body, attrs={}, &block)
|
8
|
-
attrs.symbolize_keys!
|
9
|
-
haml_concat("<!--[if lt IE 7]> #{ tag(name, add_class('ie6', attrs), true) } <![endif]-->".html_safe)
|
10
|
-
haml_concat("<!--[if IE 7]> #{ tag(name, add_class('ie7', attrs), true) } <![endif]-->".html_safe)
|
11
|
-
haml_concat("<!--[if IE 8]> #{ tag(name, add_class('ie8', attrs), true) } <![endif]-->".html_safe)
|
12
|
-
haml_concat("<!--[if gt IE 8]><!-->".html_safe)
|
13
|
-
haml_tag name, attrs do
|
14
|
-
haml_concat("<!--<![endif]-->".html_safe)
|
15
|
-
block.call
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
def ie_html(attrs={}, &block)
|
20
|
-
ie_tag(:html, attrs, &block)
|
21
|
-
end
|
22
|
-
|
23
|
-
def ie_body(attrs={}, &block)
|
24
|
-
ie_tag(:body, attrs, &block)
|
25
|
-
end
|
26
5
|
|
27
6
|
def google_account_id
|
28
7
|
ENV['GOOGLE_ACCOUNT_ID'] || google_config(:google_account_id)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html5-slim-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-10 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
16
|
-
requirement: &
|
16
|
+
requirement: &2152935660 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.1.0.rc
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2152935660
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: thor
|
27
|
-
requirement: &
|
27
|
+
requirement: &2152934260 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0.14'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2152934260
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: slim
|
38
|
-
requirement: &
|
38
|
+
requirement: &2152918480 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '1.0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2152918480
|
47
47
|
description: ''
|
48
48
|
email:
|
49
49
|
- therabidbanana@gmail.com
|
@@ -67,6 +67,16 @@ files:
|
|
67
67
|
- lib/generators/html5/install/templates/assets/javascripts/html5/boilerplate/polyfills.js
|
68
68
|
- lib/generators/html5/install/templates/assets/javascripts/polyfills.js
|
69
69
|
- lib/generators/html5/install/templates/assets/stylesheets/application.css.scss
|
70
|
+
- lib/generators/html5/install/templates/public/404.html
|
71
|
+
- lib/generators/html5/install/templates/public/apple-touch-icon-114x114-precomposed.png
|
72
|
+
- lib/generators/html5/install/templates/public/apple-touch-icon-57x57-precomposed.png
|
73
|
+
- lib/generators/html5/install/templates/public/apple-touch-icon-72x72-precomposed.png
|
74
|
+
- lib/generators/html5/install/templates/public/apple-touch-icon-precomposed.png
|
75
|
+
- lib/generators/html5/install/templates/public/apple-touch-icon.png
|
76
|
+
- lib/generators/html5/install/templates/public/crossdomain.xml
|
77
|
+
- lib/generators/html5/install/templates/public/favicon.ico
|
78
|
+
- lib/generators/html5/install/templates/public/humans.txt
|
79
|
+
- lib/generators/html5/install/templates/public/robots.txt
|
70
80
|
- lib/generators/html5/install/templates/views/application/_flashes.html.slim
|
71
81
|
- lib/generators/html5/install/templates/views/application/_footer.html.slim
|
72
82
|
- lib/generators/html5/install/templates/views/application/_head.html.slim
|