mxm-boilerplate 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENCE +20 -0
- data/Readme.md +32 -0
- data/lib/generators/mxm/layout/templates/layouts/application.html.erb +24 -24
- data/lib/mxm/rails/version.rb +1 -1
- metadata +2 -1
data/MIT-LICENCE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011-2012 by ITV plc - http://www.itv.com
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Readme.md
CHANGED
@@ -1,2 +1,34 @@
|
|
1
1
|
# MxM Boilerplate Rails
|
2
2
|
|
3
|
+
Sensible front-end defaults for your project.
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
Add to your gemfile: ``gem "mxm-boilerplate"``
|
8
|
+
|
9
|
+
Run ``rails generate mxm:setup``
|
10
|
+
|
11
|
+
## What you get
|
12
|
+
|
13
|
+
### CSS
|
14
|
+
|
15
|
+
1. SMACSS folder conventions
|
16
|
+
2. Normalize
|
17
|
+
3. A simple 12 / 16 column grid
|
18
|
+
4. Typography defaults
|
19
|
+
5. Boilerplate helpers
|
20
|
+
|
21
|
+
### JS
|
22
|
+
|
23
|
+
1. Modernizr
|
24
|
+
2. jQuery
|
25
|
+
3. BigBird
|
26
|
+
|
27
|
+
### HTML
|
28
|
+
|
29
|
+
1. HTML5 Boilerplate layout
|
30
|
+
2. Partials for headers / footers / tracking
|
31
|
+
|
32
|
+
# Licence
|
33
|
+
|
34
|
+
http://www.opensource.org/licenses/MIT
|
@@ -3,34 +3,34 @@
|
|
3
3
|
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
4
4
|
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
5
5
|
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
6
|
+
<head>
|
7
|
+
<meta charset="utf-8">
|
8
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
9
|
+
<title></title>
|
10
|
+
<meta name="description" content="">
|
11
|
+
<meta name="viewport" content="width=device-width">
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
13
|
+
<%= stylesheet_link_tag "application" %>
|
14
|
+
<%= javascript_include_tag "modernizr-2.6.2.js" %>
|
15
|
+
<%= csrf_meta_tags %>
|
16
|
+
</head>
|
17
|
+
<body data-module="<%= controller_name %>" data-action="<%= action_name %>">
|
18
|
+
<!--[if lt IE 7]>
|
19
|
+
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
|
20
|
+
<![endif]-->
|
21
21
|
|
22
|
-
|
22
|
+
<%= render "header" %>
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
24
|
+
<div class="l-site-content" role="main">
|
25
|
+
<%= yield %>
|
26
|
+
</div>
|
27
27
|
|
28
|
-
|
28
|
+
<%= render "footer" %>
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
|
31
|
+
<script>window.jQuery || document.write('<script src="<%= asset_path 'jquery-1.9.0.js' %>"><\/script>')</script>
|
32
|
+
<%= javascript_include_tag "application" %>
|
33
33
|
|
34
|
-
|
35
|
-
|
34
|
+
<%= render "tracking" %>
|
35
|
+
</body>
|
36
36
|
</html>
|
data/lib/mxm/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mxm-boilerplate
|
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:
|
@@ -51,6 +51,7 @@ extensions: []
|
|
51
51
|
extra_rdoc_files: []
|
52
52
|
files:
|
53
53
|
- .gitignore
|
54
|
+
- MIT-LICENCE
|
54
55
|
- Rakefile
|
55
56
|
- Readme.md
|
56
57
|
- lib/generators/mxm/assets/assets_generator.rb
|