quick-templater 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bac69bdbfcba49bedf347a1554910cea0978f7e0
4
- data.tar.gz: cb783f1f78d0aca0857e06e20a877ddd774dfde9
3
+ metadata.gz: bba712fbe21857b9779c2fb359d4e09d6103e596
4
+ data.tar.gz: 3495e752a98aca71eb9d2d28c98f98274ed9f7da
5
5
  SHA512:
6
- metadata.gz: 4c1497d81cfc9877006abde08d5dd702bf87b4f024a614de6248e2c06b2fa454e049614db72b419bf6eb06b70063acff2eb2003acdd7fd43604652ba37e2e0ad
7
- data.tar.gz: 2779037b79dc5c384dcc1dba70e1986c954e032013a65be641734f9249abf4704d1c3e903fc875401592d2709f97012c9ebf9e8925e2376d7b9685d2a4ac2a80
6
+ metadata.gz: dd02882d14df3a32e3d39ab8b0665220d7d99b4e4694843b930fe56aa310f5986ec2070a3cd74849afeaaee5d051a48cd0c4b04333f5e458a0598cad0524426f
7
+ data.tar.gz: 624559823fcd5992cd088ef5b761e39bc546da760aff04c70b8911ac9374c14e121ce8f9137969cd3beb433b93de422ab22ac08fc15bbbf310a23a6e356528d7
data/.gitignore CHANGED
@@ -16,3 +16,6 @@ spec/reports
16
16
  test/tmp
17
17
  test/version_tmp
18
18
  tmp
19
+
20
+ # Gemnasium gem configuration file
21
+ config/gemnasium.yml
data/Gemfile CHANGED
@@ -4,8 +4,7 @@ gemspec
4
4
 
5
5
  group :test do
6
6
  gem "generator_spec"
7
- gem 'haml'
8
- gem 'slim'
7
+ gem 'coveralls', require: false
9
8
  gem 'html2haml'
10
9
  gem 'haml2slim'
11
10
  end
data/README.md CHANGED
@@ -5,6 +5,9 @@ Today some bootstrap v3 templates already available to generate layouts.
5
5
 
6
6
  [![Gem Version](https://badge.fury.io/rb/quick-templater.png)](http://badge.fury.io/rb/quick-templater)
7
7
  [![Build Status](https://travis-ci.org/jurrick/quick-templater.png?branch=master)](https://travis-ci.org/jurrick/quick-templater)
8
+ [![Coverage Status](https://coveralls.io/repos/jurrick/quick-templater/badge.png)](https://coveralls.io/r/jurrick/quick-templater)
9
+ [![Dependency Status](https://gemnasium.com/jurrick/quick-templater.png)](https://gemnasium.com/jurrick/quick-templater)
10
+
8
11
 
9
12
  ## Installation
10
13
 
@@ -0,0 +1,167 @@
1
+ /*
2
+ * Globals
3
+ */
4
+
5
+ body {
6
+ font-family: Georgia, "Times New Roman", Times, serif;
7
+ color: #555;
8
+ }
9
+
10
+ h1, .h1,
11
+ h2, .h2,
12
+ h3, .h3,
13
+ h4, .h4,
14
+ h5, .h5,
15
+ h6, .h6 {
16
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;;
17
+ font-weight: normal;
18
+ color: #333;
19
+ margin-top: 0;
20
+ }
21
+
22
+
23
+ /*
24
+ * Override Bootstrap's default container.
25
+ */
26
+
27
+ @media (min-width: 1200px) {
28
+ .container {
29
+ width: 970px;
30
+ }
31
+ }
32
+
33
+
34
+ /*
35
+ * Masthead for nav
36
+ */
37
+
38
+ .blog-masthead {
39
+ background-color: #428bca;
40
+ box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
41
+ }
42
+
43
+ /* Nav links */
44
+ .blog-nav {
45
+
46
+ }
47
+ .blog-nav-item {
48
+ position: relative;
49
+ display: inline-block;
50
+ padding: 10px;
51
+ font-weight: 500;
52
+ color: #cdddeb;
53
+ }
54
+ .blog-nav-item:hover,
55
+ .blog-nav-item:focus {
56
+ color: #fff;
57
+ text-decoration: none;
58
+ }
59
+
60
+ /* Active state gets a caret at the bottom */
61
+ .blog-nav .active {
62
+ color: #fff;
63
+ }
64
+ .blog-nav .active:after {
65
+ position: absolute;
66
+ bottom: 0;
67
+ left: 50%;
68
+ display: block;
69
+ content: " ";
70
+ width: 0;
71
+ height: 0;
72
+ margin-left: -5px;
73
+ vertical-align: middle;
74
+ border-right: 5px solid transparent;
75
+ border-left: 5px solid transparent;
76
+ border-bottom: 5px solid;
77
+ }
78
+
79
+
80
+ /*
81
+ * Blog name and description
82
+ */
83
+
84
+ .blog-header {
85
+ padding-top: 20px;
86
+ padding-bottom: 20px;
87
+ }
88
+ .blog-title {
89
+ margin-top: 30px;
90
+ margin-bottom: 0;
91
+ font-size: 60px;
92
+ font-weight: normal;
93
+ }
94
+ .blog-description {
95
+ font-size: 20px;
96
+ color: #999;
97
+ }
98
+
99
+
100
+ /*
101
+ * Main column and sidebar layout
102
+ */
103
+
104
+ .blog-main {
105
+ font-size: 18px;
106
+ line-height: 1.5;
107
+ }
108
+
109
+ /* Sidebar modules for boxing content */
110
+ .sidebar-module {
111
+ padding: 15px;
112
+ margin: 0 -15px 15px;
113
+ }
114
+ .sidebar-module-inset {
115
+ padding: 15px;
116
+ background-color: #f5f5f5;
117
+ border-radius: 4px;
118
+ }
119
+ .sidebar-module-inset p:last-child,
120
+ .sidebar-module-inset ul:last-child,
121
+ .sidebar-module-inset ol:last-child {
122
+ margin-bottom: 0;
123
+ }
124
+
125
+
126
+
127
+ /* Pagination */
128
+ .pager {
129
+ margin-bottom: 60px;
130
+ text-align: left;
131
+ }
132
+ .pager > li > a {
133
+ width: 140px;
134
+ padding: 10px 20px;
135
+ text-align: center;
136
+ border-radius: 30px;
137
+ }
138
+
139
+
140
+ /*
141
+ * Blog posts
142
+ */
143
+
144
+ .blog-post {
145
+ margin-bottom: 60px;
146
+ }
147
+ .blog-post-title {
148
+ margin-bottom: 5px;
149
+ font-size: 40px;
150
+ }
151
+ .blog-post-meta {
152
+ margin-bottom: 20px;
153
+ color: #999;
154
+ }
155
+
156
+
157
+ /*
158
+ * Footer
159
+ */
160
+
161
+ .blog-footer {
162
+ padding: 40px 0;
163
+ color: #999;
164
+ text-align: center;
165
+ background-color: #f9f9f9;
166
+ border-top: 1px solid #e5e5e5;
167
+ }
@@ -0,0 +1,161 @@
1
+ /*
2
+ * Globals
3
+ */
4
+
5
+ /* Links */
6
+ a,
7
+ a:focus,
8
+ a:hover {
9
+ color: #fff;
10
+ }
11
+
12
+ /* Custom default button */
13
+ .btn-default,
14
+ .btn-default:hover,
15
+ .btn-default:focus {
16
+ color: #333;
17
+ text-shadow: none; /* Prevent inheritence from `body` */
18
+ background-color: #fff;
19
+ border: 1px solid #fff;
20
+ }
21
+
22
+
23
+ /*
24
+ * Base structure
25
+ */
26
+
27
+ html,
28
+ body {
29
+ height: 100%;
30
+ background-color: #333;
31
+ }
32
+ body {
33
+ color: #fff;
34
+ text-align: center;
35
+ text-shadow: 0 1px 3px rgba(0,0,0,.5);
36
+ box-shadow: inset 0 0 100px rgba(0,0,0,.5);
37
+ }
38
+
39
+ /* Extra markup and styles for table-esque vertical and horizontal centering */
40
+ .site-wrapper {
41
+ display: table;
42
+ width: 100%;
43
+ height: 100%; /* For at least Firefox */
44
+ min-height: 100%;
45
+ }
46
+ .site-wrapper-inner {
47
+ display: table-cell;
48
+ vertical-align: top;
49
+ }
50
+ .cover-container {
51
+ margin-left: auto;
52
+ margin-right: auto;
53
+ }
54
+
55
+ /* Padding for spacing */
56
+ .inner {
57
+ padding: 30px;
58
+ }
59
+
60
+
61
+ /*
62
+ * Header
63
+ */
64
+ .masthead-brand {
65
+ margin-top: 10px;
66
+ margin-bottom: 10px;
67
+ }
68
+
69
+ .masthead-nav > li {
70
+ display: inline-block;
71
+ }
72
+ .masthead-nav > li + li {
73
+ margin-left: 20px;
74
+ }
75
+ .masthead-nav > li > a {
76
+ padding-left: 0;
77
+ padding-right: 0;
78
+ font-size: 16px;
79
+ font-weight: bold;
80
+ color: #fff; /* IE8 proofing */
81
+ color: rgba(255,255,255,.75);
82
+ border-bottom: 2px solid transparent;
83
+ }
84
+ .masthead-nav > li > a:hover,
85
+ .masthead-nav > li > a:focus {
86
+ background-color: transparent;
87
+ border-bottom-color: rgba(255,255,255,.25);
88
+ }
89
+ .masthead-nav > .active > a,
90
+ .masthead-nav > .active > a:hover,
91
+ .masthead-nav > .active > a:focus {
92
+ color: #fff;
93
+ border-bottom-color: #fff;
94
+ }
95
+
96
+ @media (min-width: 768px) {
97
+ .masthead-brand {
98
+ float: left;
99
+ }
100
+ .masthead-nav {
101
+ float: right;
102
+ }
103
+ }
104
+
105
+
106
+ /*
107
+ * Cover
108
+ */
109
+
110
+ .cover {
111
+ padding: 0 20px;
112
+ }
113
+ .cover .btn-lg {
114
+ padding: 10px 20px;
115
+ font-weight: bold;
116
+ }
117
+
118
+
119
+ /*
120
+ * Footer
121
+ */
122
+
123
+ .mastfoot {
124
+ color: #999; /* IE8 proofing */
125
+ color: rgba(255,255,255,.5);
126
+ }
127
+
128
+
129
+ /*
130
+ * Affix and center
131
+ */
132
+
133
+ @media (min-width: 768px) {
134
+ /* Pull out the header and footer */
135
+ .masthead {
136
+ position: fixed;
137
+ top: 0;
138
+ }
139
+ .mastfoot {
140
+ position: fixed;
141
+ bottom: 0;
142
+ }
143
+ /* Start the vertical centering */
144
+ .site-wrapper-inner {
145
+ vertical-align: middle;
146
+ }
147
+ /* Handle the widths */
148
+ .masthead,
149
+ .mastfoot,
150
+ .cover-container {
151
+ width: 100%; /* Must be percentage or pixels for horizontal alignment */
152
+ }
153
+ }
154
+
155
+ @media (min-width: 992px) {
156
+ .masthead,
157
+ .mastfoot,
158
+ .cover-container {
159
+ width: 700px;
160
+ }
161
+ }
@@ -0,0 +1,93 @@
1
+ /*
2
+ * Base structure
3
+ */
4
+
5
+ /* Move down content because we have a fixed navbar that is 50px tall */
6
+ body {
7
+ padding-top: 50px;
8
+ }
9
+
10
+
11
+ /*
12
+ * Global add-ons
13
+ */
14
+
15
+ .sub-header {
16
+ padding-bottom: 10px;
17
+ border-bottom: 1px solid #eee;
18
+ }
19
+
20
+
21
+ /*
22
+ * Sidebar
23
+ */
24
+
25
+ /* Hide for mobile, show later */
26
+ .sidebar {
27
+ display: none;
28
+ }
29
+ @media (min-width: 768px) {
30
+ .sidebar {
31
+ position: fixed;
32
+ top: 0;
33
+ left: 0;
34
+ bottom: 0;
35
+ z-index: 1000;
36
+ display: block;
37
+ padding: 70px 20px 20px;
38
+ background-color: #f5f5f5;
39
+ border-right: 1px solid #eee;
40
+ }
41
+ }
42
+
43
+ /* Sidebar navigation */
44
+ .nav-sidebar {
45
+ margin-left: -20px;
46
+ margin-right: -21px; /* 20px padding + 1px border */
47
+ margin-bottom: 20px;
48
+ }
49
+ .nav-sidebar > li > a {
50
+ padding-left: 20px;
51
+ padding-right: 20px;
52
+ }
53
+ .nav-sidebar > .active > a {
54
+ color: #fff;
55
+ background-color: #428bca;
56
+ }
57
+
58
+
59
+ /*
60
+ * Main content
61
+ */
62
+
63
+ .main {
64
+ padding: 20px;
65
+ }
66
+ @media (min-width: 768px) {
67
+ .main {
68
+ padding-left: 40px;
69
+ padding-right: 40px;
70
+ }
71
+ }
72
+ .main .page-header {
73
+ margin-top: 0;
74
+ }
75
+
76
+
77
+ /*
78
+ * Placeholder dashboard ideas
79
+ */
80
+
81
+ .placeholders {
82
+ margin-bottom: 30px;
83
+ text-align: center;
84
+ }
85
+ .placeholders h4 {
86
+ margin-bottom: 0;
87
+ }
88
+ .placeholder {
89
+ margin-bottom: 20px;
90
+ }
91
+ .placeholder img {
92
+ border-radius: 50%;
93
+ }
@@ -1,5 +1,7 @@
1
+ require 'rails/generators'
2
+
1
3
  module QuickTemplater
2
- class Layout < Rails::Generators::Base
4
+ class LayoutGenerator < Rails::Generators::Base
3
5
  desc "Installs the application layout"
4
6
  source_root File.expand_path('../templates/bootstrap3', __FILE__)
5
7
 
@@ -0,0 +1,151 @@
1
+
2
+ <!DOCTYPE html>
3
+ <html lang="en">
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+
9
+ <title><%= options.app_name %></title>
10
+
11
+ <%%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
12
+ <%%= stylesheet_link_tag "quick-templater", media: "all", "data-turbolinks-track" => true %>
13
+ <%%= javascript_include_tag "application", "data-turbolinks-track" => true %>
14
+ <%%= csrf_meta_tag %>
15
+ </head>
16
+
17
+ <body>
18
+
19
+ <div class="blog-masthead">
20
+ <div class="container">
21
+ <nav class="blog-nav">
22
+ <a class="blog-nav-item active" href="#">Home</a>
23
+ <a class="blog-nav-item" href="#">New features</a>
24
+ <a class="blog-nav-item" href="#">Press</a>
25
+ <a class="blog-nav-item" href="#">New hires</a>
26
+ <a class="blog-nav-item" href="#">About</a>
27
+ </nav>
28
+ </div>
29
+ </div>
30
+
31
+ <div class="container">
32
+
33
+ <div class="blog-header">
34
+ <h1 class="blog-title">The Bootstrap Blog</h1>
35
+ <p class="lead blog-description">The official example template of creating a blog with Bootstrap.</p>
36
+ </div>
37
+
38
+ <div class="row">
39
+
40
+ <div class="col-sm-8 blog-main">
41
+
42
+ <div class="blog-post">
43
+ <h2 class="blog-post-title">Sample blog post</h2>
44
+ <p class="blog-post-meta">January 1, 2014 by <a href="#">Mark</a></p>
45
+
46
+ <p>This blog post shows a few different types of content that's supported and styled with Bootstrap. Basic typography, images, and code are all supported.</p>
47
+ <hr>
48
+ <p>Cum sociis natoque penatibus et magnis <a href="#">dis parturient montes</a>, nascetur ridiculus mus. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Sed posuere consectetur est at lobortis. Cras mattis consectetur purus sit amet fermentum.</p>
49
+ <blockquote>
50
+ <p>Curabitur blandit tempus porttitor. <strong>Nullam quis risus eget urna mollis</strong> ornare vel eu leo. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
51
+ </blockquote>
52
+ <p>Etiam porta <em>sem malesuada magna</em> mollis euismod. Cras mattis consectetur purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur.</p>
53
+ <h2>Heading</h2>
54
+ <p>Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
55
+ <h3>Sub-heading</h3>
56
+ <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
57
+ <pre><code>Example code block</code></pre>
58
+ <p>Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa.</p>
59
+ <h3>Sub-heading</h3>
60
+ <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
61
+ <ul>
62
+ <li>Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</li>
63
+ <li>Donec id elit non mi porta gravida at eget metus.</li>
64
+ <li>Nulla vitae elit libero, a pharetra augue.</li>
65
+ </ul>
66
+ <p>Donec ullamcorper nulla non metus auctor fringilla. Nulla vitae elit libero, a pharetra augue.</p>
67
+ <ol>
68
+ <li>Vestibulum id ligula porta felis euismod semper.</li>
69
+ <li>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</li>
70
+ <li>Maecenas sed diam eget risus varius blandit sit amet non magna.</li>
71
+ </ol>
72
+ <p>Cras mattis consectetur purus sit amet fermentum. Sed posuere consectetur est at lobortis.</p>
73
+ </div><!-- /.blog-post -->
74
+
75
+ <div class="blog-post">
76
+ <h2 class="blog-post-title">Another blog post</h2>
77
+ <p class="blog-post-meta">December 23, 2013 by <a href="#">Jacob</a></p>
78
+
79
+ <p>Cum sociis natoque penatibus et magnis <a href="#">dis parturient montes</a>, nascetur ridiculus mus. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Sed posuere consectetur est at lobortis. Cras mattis consectetur purus sit amet fermentum.</p>
80
+ <blockquote>
81
+ <p>Curabitur blandit tempus porttitor. <strong>Nullam quis risus eget urna mollis</strong> ornare vel eu leo. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
82
+ </blockquote>
83
+ <p>Etiam porta <em>sem malesuada magna</em> mollis euismod. Cras mattis consectetur purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur.</p>
84
+ <p>Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
85
+ </div><!-- /.blog-post -->
86
+
87
+ <div class="blog-post">
88
+ <h2 class="blog-post-title">New feature</h2>
89
+ <p class="blog-post-meta">December 14, 2013 by <a href="#">Chris</a></p>
90
+
91
+ <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
92
+ <ul>
93
+ <li>Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</li>
94
+ <li>Donec id elit non mi porta gravida at eget metus.</li>
95
+ <li>Nulla vitae elit libero, a pharetra augue.</li>
96
+ </ul>
97
+ <p>Etiam porta <em>sem malesuada magna</em> mollis euismod. Cras mattis consectetur purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur.</p>
98
+ <p>Donec ullamcorper nulla non metus auctor fringilla. Nulla vitae elit libero, a pharetra augue.</p>
99
+ </div><!-- /.blog-post -->
100
+
101
+ <ul class="pager">
102
+ <li><a href="#">Previous</a></li>
103
+ <li><a href="#">Next</a></li>
104
+ </ul>
105
+
106
+ </div><!-- /.blog-main -->
107
+
108
+ <div class="col-sm-3 col-sm-offset-1 blog-sidebar">
109
+ <div class="sidebar-module sidebar-module-inset">
110
+ <h4>About</h4>
111
+ <p>Etiam porta <em>sem malesuada magna</em> mollis euismod. Cras mattis consectetur purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur.</p>
112
+ </div>
113
+ <div class="sidebar-module">
114
+ <h4>Archives</h4>
115
+ <ol class="list-unstyled">
116
+ <li><a href="#">January 2014</a></li>
117
+ <li><a href="#">December 2013</a></li>
118
+ <li><a href="#">November 2013</a></li>
119
+ <li><a href="#">October 2013</a></li>
120
+ <li><a href="#">September 2013</a></li>
121
+ <li><a href="#">August 2013</a></li>
122
+ <li><a href="#">July 2013</a></li>
123
+ <li><a href="#">June 2013</a></li>
124
+ <li><a href="#">May 2013</a></li>
125
+ <li><a href="#">April 2013</a></li>
126
+ <li><a href="#">March 2013</a></li>
127
+ <li><a href="#">February 2013</a></li>
128
+ </ol>
129
+ </div>
130
+ <div class="sidebar-module">
131
+ <h4>Elsewhere</h4>
132
+ <ol class="list-unstyled">
133
+ <li><a href="#">GitHub</a></li>
134
+ <li><a href="#">Twitter</a></li>
135
+ <li><a href="#">Facebook</a></li>
136
+ </ol>
137
+ </div>
138
+ </div><!-- /.blog-sidebar -->
139
+
140
+ </div><!-- /.row -->
141
+
142
+ </div><!-- /.container -->
143
+
144
+ <div class="blog-footer">
145
+ <p>Blog template built for <a href="http://getbootstrap.com">Bootstrap</a> by <a href="https://twitter.com/mdo">@mdo</a>.</p>
146
+ <p>
147
+ <a href="#">Back to top</a>
148
+ </p>
149
+ </div>
150
+ </body>
151
+ </html>
@@ -0,0 +1,56 @@
1
+
2
+ <!DOCTYPE html>
3
+ <html lang="en">
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+
9
+ <title><%= options.app_name %></title>
10
+
11
+ <%%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
12
+ <%%= stylesheet_link_tag "quick-templater", media: "all", "data-turbolinks-track" => true %>
13
+ <%%= javascript_include_tag "application", "data-turbolinks-track" => true %>
14
+ <%%= csrf_meta_tag %>
15
+ </head>
16
+
17
+ <body>
18
+
19
+ <div class="site-wrapper">
20
+
21
+ <div class="site-wrapper-inner">
22
+
23
+ <div class="cover-container">
24
+
25
+ <div class="masthead clearfix">
26
+ <div class="inner">
27
+ <h3 class="masthead-brand">Cover</h3>
28
+ <ul class="nav masthead-nav">
29
+ <li class="active"><a href="#">Home</a></li>
30
+ <li><a href="#">Features</a></li>
31
+ <li><a href="#">Contact</a></li>
32
+ </ul>
33
+ </div>
34
+ </div>
35
+
36
+ <div class="inner cover">
37
+ <h1 class="cover-heading">Cover your page.</h1>
38
+ <p class="lead">Cover is a one-page template for building simple and beautiful home pages. Download, edit the text, and add your own fullscreen background photo to make it your own.</p>
39
+ <p class="lead">
40
+ <a href="#" class="btn btn-lg btn-default">Learn more</a>
41
+ </p>
42
+ </div>
43
+
44
+ <div class="mastfoot">
45
+ <div class="inner">
46
+ <p>Cover template for <a href="http://getbootstrap.com">Bootstrap</a>, by <a href="https://twitter.com/mdo">@mdo</a>.</p>
47
+ </div>
48
+ </div>
49
+
50
+ </div>
51
+
52
+ </div>
53
+
54
+ </div>
55
+ </body>
56
+ </html>
@@ -0,0 +1,224 @@
1
+
2
+ <!DOCTYPE html>
3
+ <html lang="en">
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+
9
+ <title><%= options.app_name %></title>
10
+
11
+ <%%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
12
+ <%%= stylesheet_link_tag "quick-templater", media: "all", "data-turbolinks-track" => true %>
13
+ <%%= javascript_include_tag "application", "data-turbolinks-track" => true %>
14
+ <%%= csrf_meta_tag %>
15
+ </head>
16
+
17
+ <body>
18
+
19
+ <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
20
+ <div class="container-fluid">
21
+ <div class="navbar-header">
22
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
23
+ <span class="sr-only">Toggle navigation</span>
24
+ <span class="icon-bar"></span>
25
+ <span class="icon-bar"></span>
26
+ <span class="icon-bar"></span>
27
+ </button>
28
+ <a class="navbar-brand" href="#">Project name</a>
29
+ </div>
30
+ <div class="navbar-collapse collapse">
31
+ <ul class="nav navbar-nav navbar-right">
32
+ <li><a href="#">Dashboard</a></li>
33
+ <li><a href="#">Settings</a></li>
34
+ <li><a href="#">Profile</a></li>
35
+ <li><a href="#">Help</a></li>
36
+ </ul>
37
+ <form class="navbar-form navbar-right">
38
+ <input type="text" class="form-control" placeholder="Search...">
39
+ </form>
40
+ </div>
41
+ </div>
42
+ </div>
43
+
44
+ <div class="container-fluid">
45
+ <div class="row">
46
+ <div class="col-sm-3 col-md-2 sidebar">
47
+ <ul class="nav nav-sidebar">
48
+ <li class="active"><a href="#">Overview</a></li>
49
+ <li><a href="#">Reports</a></li>
50
+ <li><a href="#">Analytics</a></li>
51
+ <li><a href="#">Export</a></li>
52
+ </ul>
53
+ <ul class="nav nav-sidebar">
54
+ <li><a href="">Nav item</a></li>
55
+ <li><a href="">Nav item again</a></li>
56
+ <li><a href="">One more nav</a></li>
57
+ <li><a href="">Another nav item</a></li>
58
+ <li><a href="">More navigation</a></li>
59
+ </ul>
60
+ <ul class="nav nav-sidebar">
61
+ <li><a href="">Nav item again</a></li>
62
+ <li><a href="">One more nav</a></li>
63
+ <li><a href="">Another nav item</a></li>
64
+ </ul>
65
+ </div>
66
+ <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
67
+ <h1 class="page-header">Dashboard</h1>
68
+
69
+ <div class="row placeholders">
70
+ <div class="col-xs-6 col-sm-3 placeholder">
71
+ <img data-src="holder.js/200x200/auto/sky" class="img-responsive" alt="Generic placeholder thumbnail">
72
+ <h4>Label</h4>
73
+ <span class="text-muted">Something else</span>
74
+ </div>
75
+ <div class="col-xs-6 col-sm-3 placeholder">
76
+ <img data-src="holder.js/200x200/auto/vine" class="img-responsive" alt="Generic placeholder thumbnail">
77
+ <h4>Label</h4>
78
+ <span class="text-muted">Something else</span>
79
+ </div>
80
+ <div class="col-xs-6 col-sm-3 placeholder">
81
+ <img data-src="holder.js/200x200/auto/sky" class="img-responsive" alt="Generic placeholder thumbnail">
82
+ <h4>Label</h4>
83
+ <span class="text-muted">Something else</span>
84
+ </div>
85
+ <div class="col-xs-6 col-sm-3 placeholder">
86
+ <img data-src="holder.js/200x200/auto/vine" class="img-responsive" alt="Generic placeholder thumbnail">
87
+ <h4>Label</h4>
88
+ <span class="text-muted">Something else</span>
89
+ </div>
90
+ </div>
91
+
92
+ <h2 class="sub-header">Section title</h2>
93
+ <div class="table-responsive">
94
+ <table class="table table-striped">
95
+ <thead>
96
+ <tr>
97
+ <th>#</th>
98
+ <th>Header</th>
99
+ <th>Header</th>
100
+ <th>Header</th>
101
+ <th>Header</th>
102
+ </tr>
103
+ </thead>
104
+ <tbody>
105
+ <tr>
106
+ <td>1,001</td>
107
+ <td>Lorem</td>
108
+ <td>ipsum</td>
109
+ <td>dolor</td>
110
+ <td>sit</td>
111
+ </tr>
112
+ <tr>
113
+ <td>1,002</td>
114
+ <td>amet</td>
115
+ <td>consectetur</td>
116
+ <td>adipiscing</td>
117
+ <td>elit</td>
118
+ </tr>
119
+ <tr>
120
+ <td>1,003</td>
121
+ <td>Integer</td>
122
+ <td>nec</td>
123
+ <td>odio</td>
124
+ <td>Praesent</td>
125
+ </tr>
126
+ <tr>
127
+ <td>1,003</td>
128
+ <td>libero</td>
129
+ <td>Sed</td>
130
+ <td>cursus</td>
131
+ <td>ante</td>
132
+ </tr>
133
+ <tr>
134
+ <td>1,004</td>
135
+ <td>dapibus</td>
136
+ <td>diam</td>
137
+ <td>Sed</td>
138
+ <td>nisi</td>
139
+ </tr>
140
+ <tr>
141
+ <td>1,005</td>
142
+ <td>Nulla</td>
143
+ <td>quis</td>
144
+ <td>sem</td>
145
+ <td>at</td>
146
+ </tr>
147
+ <tr>
148
+ <td>1,006</td>
149
+ <td>nibh</td>
150
+ <td>elementum</td>
151
+ <td>imperdiet</td>
152
+ <td>Duis</td>
153
+ </tr>
154
+ <tr>
155
+ <td>1,007</td>
156
+ <td>sagittis</td>
157
+ <td>ipsum</td>
158
+ <td>Praesent</td>
159
+ <td>mauris</td>
160
+ </tr>
161
+ <tr>
162
+ <td>1,008</td>
163
+ <td>Fusce</td>
164
+ <td>nec</td>
165
+ <td>tellus</td>
166
+ <td>sed</td>
167
+ </tr>
168
+ <tr>
169
+ <td>1,009</td>
170
+ <td>augue</td>
171
+ <td>semper</td>
172
+ <td>porta</td>
173
+ <td>Mauris</td>
174
+ </tr>
175
+ <tr>
176
+ <td>1,010</td>
177
+ <td>massa</td>
178
+ <td>Vestibulum</td>
179
+ <td>lacinia</td>
180
+ <td>arcu</td>
181
+ </tr>
182
+ <tr>
183
+ <td>1,011</td>
184
+ <td>eget</td>
185
+ <td>nulla</td>
186
+ <td>Class</td>
187
+ <td>aptent</td>
188
+ </tr>
189
+ <tr>
190
+ <td>1,012</td>
191
+ <td>taciti</td>
192
+ <td>sociosqu</td>
193
+ <td>ad</td>
194
+ <td>litora</td>
195
+ </tr>
196
+ <tr>
197
+ <td>1,013</td>
198
+ <td>torquent</td>
199
+ <td>per</td>
200
+ <td>conubia</td>
201
+ <td>nostra</td>
202
+ </tr>
203
+ <tr>
204
+ <td>1,014</td>
205
+ <td>per</td>
206
+ <td>inceptos</td>
207
+ <td>himenaeos</td>
208
+ <td>Curabitur</td>
209
+ </tr>
210
+ <tr>
211
+ <td>1,015</td>
212
+ <td>sodales</td>
213
+ <td>ligula</td>
214
+ <td>in</td>
215
+ <td>libero</td>
216
+ </tr>
217
+ </tbody>
218
+ </table>
219
+ </div>
220
+ </div>
221
+ </div>
222
+ </div>
223
+ </body>
224
+ </html>
@@ -1,5 +1,7 @@
1
1
  require "quick-templater/version"
2
2
 
3
+ require "generators/quick-templater/layout/layout_generator"
4
+
3
5
  module QuickTemplater
4
6
  class Engine < Rails::Engine
5
7
 
@@ -1,3 +1,3 @@
1
1
  module QuickTemplater
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -22,4 +22,6 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency "rake"
23
23
 
24
24
  spec.add_development_dependency "rspec"
25
+ spec.add_development_dependency "gemnasium"
26
+
25
27
  end
@@ -1,6 +1,9 @@
1
1
  require 'bundler/setup'
2
2
  require 'rspec'
3
3
 
4
+ require 'coveralls'
5
+ Coveralls.wear!
6
+
4
7
  RSpec.configure do |config|
5
8
  config.treat_symbols_as_metadata_keys_with_true_values = true
6
9
  config.run_all_when_everything_filtered = true
metadata CHANGED
@@ -1,55 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quick-templater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - jurrick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-12 00:00:00.000000000 Z
11
+ date: 2014-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: gemnasium
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
53
67
  - !ruby/object:Gem::Version
54
68
  version: '0'
55
69
  description: Web app theme generator for Ruby On Rails projects
@@ -59,14 +73,17 @@ executables: []
59
73
  extensions: []
60
74
  extra_rdoc_files: []
61
75
  files:
62
- - .gitignore
63
- - .rspec
64
- - .travis.yml
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - ".travis.yml"
65
79
  - Gemfile
66
80
  - LICENSE.txt
67
81
  - README.md
68
82
  - Rakefile
83
+ - app/assets/stylesheets/quick-templater/bootstrap3/blog.css
69
84
  - app/assets/stylesheets/quick-templater/bootstrap3/carousel.css
85
+ - app/assets/stylesheets/quick-templater/bootstrap3/cover.css
86
+ - app/assets/stylesheets/quick-templater/bootstrap3/dashboard.css
70
87
  - app/assets/stylesheets/quick-templater/bootstrap3/jumbotron.css
71
88
  - app/assets/stylesheets/quick-templater/bootstrap3/justified_nav.css
72
89
  - app/assets/stylesheets/quick-templater/bootstrap3/narrow_jumbotron.css
@@ -80,7 +97,10 @@ files:
80
97
  - app/assets/stylesheets/quick-templater/bootstrap3/sticky_footer.css
81
98
  - app/assets/stylesheets/quick-templater/bootstrap3/sticky_footer_navbar.css
82
99
  - lib/generators/quick-templater/layout/layout_generator.rb
100
+ - lib/generators/quick-templater/layout/templates/bootstrap3/blog.html.erb
83
101
  - lib/generators/quick-templater/layout/templates/bootstrap3/carousel.html.erb
102
+ - lib/generators/quick-templater/layout/templates/bootstrap3/cover.html.erb
103
+ - lib/generators/quick-templater/layout/templates/bootstrap3/dashboard.html.erb
84
104
  - lib/generators/quick-templater/layout/templates/bootstrap3/jumbotron.html.erb
85
105
  - lib/generators/quick-templater/layout/templates/bootstrap3/justified_nav.html.erb
86
106
  - lib/generators/quick-templater/layout/templates/bootstrap3/narrow_jumbotron.html.erb
@@ -109,17 +129,17 @@ require_paths:
109
129
  - lib
110
130
  required_ruby_version: !ruby/object:Gem::Requirement
111
131
  requirements:
112
- - - '>='
132
+ - - ">="
113
133
  - !ruby/object:Gem::Version
114
134
  version: '0'
115
135
  required_rubygems_version: !ruby/object:Gem::Requirement
116
136
  requirements:
117
- - - '>='
137
+ - - ">="
118
138
  - !ruby/object:Gem::Version
119
139
  version: '0'
120
140
  requirements: []
121
141
  rubyforge_project:
122
- rubygems_version: 2.2.0
142
+ rubygems_version: 2.2.1
123
143
  signing_key:
124
144
  specification_version: 4
125
145
  summary: Web app template generator