locomotivecms_wagon 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -3
  3. data/generators/blank/config/site.yml.tt +20 -6
  4. data/generators/bootstrap/config/site.yml.tt +20 -6
  5. data/generators/{bootstrap → bootstrap2}/Gemfile.tt +0 -0
  6. data/generators/{bootstrap → bootstrap2}/app/content_types/.empty_directory +0 -0
  7. data/generators/{bootstrap → bootstrap2}/app/views/pages/404.liquid +0 -0
  8. data/generators/{bootstrap → bootstrap2}/app/views/pages/404.liquid.haml +0 -0
  9. data/generators/{bootstrap → bootstrap2}/app/views/pages/index.liquid +1 -1
  10. data/generators/{bootstrap → bootstrap2}/app/views/pages/index.liquid.haml +0 -0
  11. data/generators/{bootstrap → bootstrap2}/app/views/snippets/footer.liquid +0 -0
  12. data/generators/{bootstrap → bootstrap2}/app/views/snippets/footer.liquid.haml +0 -0
  13. data/generators/{bootstrap → bootstrap2}/config/deploy.yml +0 -0
  14. data/generators/bootstrap2/config/site.yml.tt +34 -0
  15. data/generators/{bootstrap → bootstrap2}/config/translations.yml +0 -0
  16. data/generators/{bootstrap → bootstrap2}/config.ru +0 -0
  17. data/generators/{bootstrap → bootstrap2}/data/.empty_directory +0 -0
  18. data/generators/bootstrap2/public/fonts/FontAwesome.otf +0 -0
  19. data/generators/bootstrap2/public/fonts/fontawesome-webfont.eot +0 -0
  20. data/generators/bootstrap2/public/fonts/fontawesome-webfont.svg +399 -0
  21. data/generators/bootstrap2/public/fonts/fontawesome-webfont.ttf +0 -0
  22. data/generators/bootstrap2/public/fonts/fontawesome-webfont.woff +0 -0
  23. data/generators/{bootstrap → bootstrap2}/public/javascripts/bootstrap.js +230 -109
  24. data/generators/bootstrap2/public/javascripts/bootstrap.min.js +6 -0
  25. data/generators/{bootstrap → bootstrap2}/public/samples/.empty_directory +0 -0
  26. data/generators/{bootstrap → bootstrap2}/public/stylesheets/application.css.scss +0 -0
  27. data/generators/{bootstrap → bootstrap2}/public/stylesheets/bootstrap-responsive.css +26 -9
  28. data/generators/bootstrap2/public/stylesheets/bootstrap-responsive.min.css +9 -0
  29. data/generators/{bootstrap → bootstrap2}/public/stylesheets/bootstrap.css +2961 -3045
  30. data/generators/bootstrap2/public/stylesheets/bootstrap.min.css +9 -0
  31. data/generators/{bootstrap → bootstrap2}/public/stylesheets/fonts/awesome.css.scss +0 -0
  32. data/generators/bootstrap2/public/stylesheets/fonts/font-awesome-ie7.css +1203 -0
  33. data/generators/bootstrap2/public/stylesheets/fonts/font-awesome-ie7.min.css +384 -0
  34. data/generators/bootstrap2/public/stylesheets/fonts/font-awesome.css +1470 -0
  35. data/generators/bootstrap2/public/stylesheets/fonts/font-awesome.min.css +403 -0
  36. data/generators/bootstrap3/Gemfile.tt +23 -0
  37. data/generators/bootstrap3/app/content_types/.empty_directory +1 -0
  38. data/generators/bootstrap3/app/views/pages/404.liquid +13 -0
  39. data/generators/bootstrap3/app/views/pages/404.liquid.haml +10 -0
  40. data/generators/bootstrap3/app/views/pages/index.liquid +779 -0
  41. data/generators/bootstrap3/app/views/pages/index.liquid.haml +1058 -0
  42. data/generators/bootstrap3/app/views/snippets/footer.liquid +3 -0
  43. data/generators/bootstrap3/app/views/snippets/footer.liquid.haml +2 -0
  44. data/generators/bootstrap3/config/deploy.yml +15 -0
  45. data/generators/bootstrap3/config/site.yml.tt +19 -0
  46. data/generators/bootstrap3/config/translations.yml +8 -0
  47. data/generators/bootstrap3/config.ru +3 -0
  48. data/generators/bootstrap3/data/.empty_directory +1 -0
  49. data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.eot +0 -0
  50. data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.svg +228 -0
  51. data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.ttf +0 -0
  52. data/generators/bootstrap3/public/fonts/glyphicons-halflings-regular.woff +0 -0
  53. data/generators/bootstrap3/public/javascripts/bootstrap.js +1999 -0
  54. data/generators/bootstrap3/public/javascripts/bootstrap.min.js +6 -0
  55. data/generators/bootstrap3/public/samples/apple-touch-icon-114-precomposed.png +0 -0
  56. data/generators/bootstrap3/public/samples/apple-touch-icon-144-precomposed.png +0 -0
  57. data/generators/bootstrap3/public/samples/apple-touch-icon-57-precomposed.png +0 -0
  58. data/generators/bootstrap3/public/samples/apple-touch-icon-72-precomposed.png +0 -0
  59. data/generators/bootstrap3/public/samples/favicon.png +0 -0
  60. data/generators/bootstrap3/public/stylesheets/bootstrap-theme.css +384 -0
  61. data/generators/bootstrap3/public/stylesheets/bootstrap-theme.min.css +1 -0
  62. data/generators/bootstrap3/public/stylesheets/bootstrap.css +6805 -0
  63. data/generators/bootstrap3/public/stylesheets/bootstrap.min.css +9 -0
  64. data/generators/foundation/app/views/pages/index.liquid +13 -18
  65. data/generators/foundation/app/views/pages/index.liquid.haml +51 -58
  66. data/generators/foundation/app/views/snippets/footer.liquid +12 -12
  67. data/generators/foundation/app/views/snippets/footer.liquid.haml +4 -5
  68. data/generators/foundation/config/site.yml.tt +20 -6
  69. data/generators/foundation/public/javascripts/foundation/foundation.abide.js +194 -0
  70. data/generators/foundation/public/javascripts/foundation/foundation.alerts.js +11 -6
  71. data/generators/foundation/public/javascripts/foundation/foundation.clearing.js +6 -6
  72. data/generators/foundation/public/javascripts/foundation/foundation.cookie.js +1 -1
  73. data/generators/foundation/public/javascripts/foundation/foundation.dropdown.js +19 -14
  74. data/generators/foundation/public/javascripts/foundation/foundation.forms.js +77 -37
  75. data/generators/foundation/public/javascripts/foundation/foundation.interchange.js +33 -24
  76. data/generators/foundation/public/javascripts/foundation/foundation.joyride.js +17 -9
  77. data/generators/foundation/public/javascripts/foundation/foundation.js +30 -13
  78. data/generators/foundation/public/javascripts/foundation/foundation.magellan.js +9 -5
  79. data/generators/foundation/public/javascripts/foundation/foundation.orbit.js +361 -319
  80. data/generators/foundation/public/javascripts/foundation/foundation.placeholder.js +426 -159
  81. data/generators/foundation/public/javascripts/foundation/foundation.reveal.js +42 -19
  82. data/generators/foundation/public/javascripts/foundation/foundation.section.js +322 -308
  83. data/generators/foundation/public/javascripts/foundation/foundation.tooltips.js +5 -4
  84. data/generators/foundation/public/javascripts/foundation/foundation.topbar.js +144 -71
  85. data/generators/foundation/public/javascripts/foundation.min.js +15 -32
  86. data/generators/foundation/public/javascripts/vendor/custom.modernizr.js +1 -1
  87. data/generators/foundation/public/javascripts/vendor/jquery.js +4389 -4197
  88. data/generators/foundation/public/javascripts/vendor/zepto.js +117 -1
  89. data/generators/foundation/public/stylesheets/foundation.css +1145 -668
  90. data/generators/foundation/public/stylesheets/foundation.min.css +1 -440
  91. data/generators/foundation/public/stylesheets/normalize.css +162 -91
  92. data/lib/locomotive/wagon/exceptions.rb +1 -1
  93. data/lib/locomotive/wagon/generators/site/bootstrap2.rb +35 -0
  94. data/lib/locomotive/wagon/generators/site/{bootstrap.rb → bootstrap3.rb} +3 -3
  95. data/lib/locomotive/wagon/generators/site/foundation.rb +1 -1
  96. data/lib/locomotive/wagon/generators/site.rb +2 -1
  97. data/lib/locomotive/wagon/liquid/drops/base.rb +4 -2
  98. data/lib/locomotive/wagon/liquid/drops/content_entry.rb +4 -4
  99. data/lib/locomotive/wagon/liquid/drops/page.rb +3 -3
  100. data/lib/locomotive/wagon/liquid/drops/site.rb +3 -3
  101. data/lib/locomotive/wagon/liquid/tags/link_to.rb +2 -1
  102. data/lib/locomotive/wagon/misc/better_errors.rb +1 -1
  103. data/lib/locomotive/wagon/server/renderer.rb +9 -2
  104. data/lib/locomotive/wagon/server.rb +1 -3
  105. data/lib/locomotive/wagon/version.rb +1 -1
  106. data/locomotivecms_wagon.gemspec +2 -2
  107. data/spec/integration/server/basic_spec.rb +7 -0
  108. metadata +68 -35
  109. data/generators/bootstrap/public/fonts/FontAwesome.otf +0 -0
  110. data/generators/bootstrap/public/fonts/fontawesome-webfont.eot +0 -0
  111. data/generators/bootstrap/public/fonts/fontawesome-webfont.ttf +0 -0
  112. data/generators/bootstrap/public/fonts/fontawesome-webfont.woff +0 -0
  113. data/generators/bootstrap/public/javascripts/bootstrap.min.js +0 -6
  114. data/generators/bootstrap/public/stylesheets/bootstrap-responsive.min.css +0 -9
  115. data/generators/bootstrap/public/stylesheets/bootstrap.min.css +0 -726
  116. data/generators/bootstrap/public/stylesheets/fonts/font-awesome-ie7.min.css +0 -23
  117. data/generators/bootstrap/public/stylesheets/fonts/font-awesome.css +0 -460
  118. data/lib/locomotive/wagon/server/not_found.rb +0 -19
@@ -1,10 +1,13 @@
1
- /* normalize.css v2.1.1 | MIT License | git.io/normalize */
1
+ /*! normalize.css v2.1.2 | MIT License | git.io/normalize */
2
+
2
3
  /* ==========================================================================
3
4
  HTML5 display definitions
4
5
  ========================================================================== */
6
+
5
7
  /**
6
8
  * Correct `block` display not defined in IE 8/9.
7
9
  */
10
+
8
11
  article,
9
12
  aside,
10
13
  details,
@@ -17,233 +20,290 @@ main,
17
20
  nav,
18
21
  section,
19
22
  summary {
20
- display: block; }
23
+ display: block;
24
+ }
21
25
 
22
26
  /**
23
27
  * Correct `inline-block` display not defined in IE 8/9.
24
28
  */
29
+
25
30
  audio,
26
31
  canvas,
27
32
  video {
28
- display: inline-block; }
33
+ display: inline-block;
34
+ }
29
35
 
30
36
  /**
31
37
  * Prevent modern browsers from displaying `audio` without controls.
32
38
  * Remove excess height in iOS 5 devices.
33
39
  */
40
+
34
41
  audio:not([controls]) {
35
- display: none;
36
- height: 0; }
42
+ display: none;
43
+ height: 0;
44
+ }
37
45
 
38
46
  /**
39
- * Address styling not present in IE 8/9.
47
+ * Address `[hidden]` styling not present in IE 8/9.
48
+ * Hide the `template` element in IE, Safari, and Firefox < 22.
40
49
  */
41
- [hidden] {
42
- display: none; }
50
+
51
+ [hidden],
52
+ template {
53
+ display: none;
54
+ }
55
+
56
+ script {
57
+ display: none !important;
58
+ }
43
59
 
44
60
  /* ==========================================================================
45
61
  Base
46
62
  ========================================================================== */
63
+
47
64
  /**
48
- * 1. Prevent system color scheme's background color being used in Firefox, IE,
49
- * and Opera.
50
- * 2. Prevent system color scheme's text color being used in Firefox, IE, and
51
- * Opera.
52
- * 3. Set default font family to sans-serif.
53
- * 4. Prevent iOS text size adjust after orientation change, without disabling
65
+ * 1. Set default font family to sans-serif.
66
+ * 2. Prevent iOS text size adjust after orientation change, without disabling
54
67
  * user zoom.
55
68
  */
69
+
56
70
  html {
57
- background: #fff;
58
- /* 1 */
59
- color: #000;
60
- /* 2 */
61
- font-family: sans-serif;
62
- /* 3 */
63
- -ms-text-size-adjust: 100%;
64
- /* 4 */
65
- -webkit-text-size-adjust: 100%;
66
- /* 4 */ }
71
+ font-family: sans-serif; /* 1 */
72
+ -ms-text-size-adjust: 100%; /* 2 */
73
+ -webkit-text-size-adjust: 100%; /* 2 */
74
+ }
67
75
 
68
76
  /**
69
77
  * Remove default margin.
70
78
  */
79
+
71
80
  body {
72
- margin: 0; }
81
+ margin: 0;
82
+ }
73
83
 
74
84
  /* ==========================================================================
75
85
  Links
76
86
  ========================================================================== */
87
+
88
+ /**
89
+ * Remove the gray background color from active links in IE 10.
90
+ */
91
+
92
+ a {
93
+ background: transparent;
94
+ }
95
+
77
96
  /**
78
97
  * Address `outline` inconsistency between Chrome and other browsers.
79
98
  */
99
+
80
100
  a:focus {
81
- outline: thin dotted; }
101
+ outline: thin dotted;
102
+ }
82
103
 
83
104
  /**
84
105
  * Improve readability when focused and also mouse hovered in all browsers.
85
106
  */
107
+
86
108
  a:active,
87
109
  a:hover {
88
- outline: 0; }
110
+ outline: 0;
111
+ }
89
112
 
90
113
  /* ==========================================================================
91
114
  Typography
92
115
  ========================================================================== */
116
+
93
117
  /**
94
118
  * Address variable `h1` font-size and margin within `section` and `article`
95
119
  * contexts in Firefox 4+, Safari 5, and Chrome.
96
120
  */
121
+
97
122
  h1 {
98
- font-size: 2em;
99
- margin: 0.67em 0; }
123
+ font-size: 2em;
124
+ margin: 0.67em 0;
125
+ }
100
126
 
101
127
  /**
102
128
  * Address styling not present in IE 8/9, Safari 5, and Chrome.
103
129
  */
130
+
104
131
  abbr[title] {
105
- border-bottom: 1px dotted; }
132
+ border-bottom: 1px dotted;
133
+ }
106
134
 
107
135
  /**
108
136
  * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
109
137
  */
138
+
110
139
  b,
111
140
  strong {
112
- font-weight: bold; }
141
+ font-weight: bold;
142
+ }
113
143
 
114
144
  /**
115
145
  * Address styling not present in Safari 5 and Chrome.
116
146
  */
147
+
117
148
  dfn {
118
- font-style: italic; }
149
+ font-style: italic;
150
+ }
119
151
 
120
152
  /**
121
153
  * Address differences between Firefox and other browsers.
122
154
  */
155
+
123
156
  hr {
124
- -moz-box-sizing: content-box;
125
- box-sizing: content-box;
126
- height: 0; }
157
+ -moz-box-sizing: content-box;
158
+ box-sizing: content-box;
159
+ height: 0;
160
+ }
127
161
 
128
162
  /**
129
163
  * Address styling not present in IE 8/9.
130
164
  */
165
+
131
166
  mark {
132
- background: #ff0;
133
- color: #000; }
167
+ background: #ff0;
168
+ color: #000;
169
+ }
134
170
 
135
171
  /**
136
172
  * Correct font family set oddly in Safari 5 and Chrome.
137
173
  */
174
+
138
175
  code,
139
176
  kbd,
140
177
  pre,
141
178
  samp {
142
- font-family: monospace, serif;
143
- font-size: 1em; }
179
+ font-family: monospace, serif;
180
+ font-size: 1em;
181
+ }
144
182
 
145
183
  /**
146
184
  * Improve readability of pre-formatted text in all browsers.
147
185
  */
186
+
148
187
  pre {
149
- white-space: pre-wrap; }
188
+ white-space: pre-wrap;
189
+ }
150
190
 
151
191
  /**
152
192
  * Set consistent quote types.
153
193
  */
194
+
154
195
  q {
155
- quotes: "\201C" "\201D" "\2018" "\2019"; }
196
+ quotes: "\201C" "\201D" "\2018" "\2019";
197
+ }
156
198
 
157
199
  /**
158
200
  * Address inconsistent and variable font size in all browsers.
159
201
  */
202
+
160
203
  small {
161
- font-size: 80%; }
204
+ font-size: 80%;
205
+ }
162
206
 
163
207
  /**
164
208
  * Prevent `sub` and `sup` affecting `line-height` in all browsers.
165
209
  */
210
+
166
211
  sub,
167
212
  sup {
168
- font-size: 75%;
169
- line-height: 0;
170
- position: relative;
171
- vertical-align: baseline; }
213
+ font-size: 75%;
214
+ line-height: 0;
215
+ position: relative;
216
+ vertical-align: baseline;
217
+ }
172
218
 
173
219
  sup {
174
- top: -0.5em; }
220
+ top: -0.5em;
221
+ }
175
222
 
176
223
  sub {
177
- bottom: -0.25em; }
224
+ bottom: -0.25em;
225
+ }
178
226
 
179
227
  /* ==========================================================================
180
228
  Embedded content
181
229
  ========================================================================== */
230
+
182
231
  /**
183
232
  * Remove border when inside `a` element in IE 8/9.
184
233
  */
234
+
185
235
  img {
186
- border: 0; }
236
+ border: 0;
237
+ }
187
238
 
188
239
  /**
189
240
  * Correct overflow displayed oddly in IE 9.
190
241
  */
242
+
191
243
  svg:not(:root) {
192
- overflow: hidden; }
244
+ overflow: hidden;
245
+ }
193
246
 
194
247
  /* ==========================================================================
195
248
  Figures
196
249
  ========================================================================== */
250
+
197
251
  /**
198
252
  * Address margin not present in IE 8/9 and Safari 5.
199
253
  */
254
+
200
255
  figure {
201
- margin: 0; }
256
+ margin: 0;
257
+ }
202
258
 
203
259
  /* ==========================================================================
204
260
  Forms
205
261
  ========================================================================== */
262
+
206
263
  /**
207
264
  * Define consistent border, margin, and padding.
208
265
  */
266
+
209
267
  fieldset {
210
- border: 1px solid #c0c0c0;
211
- margin: 0 2px;
212
- padding: 0.35em 0.625em 0.75em; }
268
+ border: 1px solid #c0c0c0;
269
+ margin: 0 2px;
270
+ padding: 0.35em 0.625em 0.75em;
271
+ }
213
272
 
214
273
  /**
215
274
  * 1. Correct `color` not being inherited in IE 8/9.
216
275
  * 2. Remove padding so people aren't caught out if they zero out fieldsets.
217
276
  */
277
+
218
278
  legend {
219
- border: 0;
220
- /* 1 */
221
- padding: 0;
222
- /* 2 */ }
279
+ border: 0; /* 1 */
280
+ padding: 0; /* 2 */
281
+ }
223
282
 
224
283
  /**
225
284
  * 1. Correct font family not being inherited in all browsers.
226
285
  * 2. Correct font size not being inherited in all browsers.
227
286
  * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
228
287
  */
288
+
229
289
  button,
230
290
  input,
231
291
  select,
232
292
  textarea {
233
- font-family: inherit;
234
- /* 1 */
235
- font-size: 100%;
236
- /* 2 */
237
- margin: 0;
238
- /* 3 */ }
293
+ font-family: inherit; /* 1 */
294
+ font-size: 100%; /* 2 */
295
+ margin: 0; /* 3 */
296
+ }
239
297
 
240
298
  /**
241
299
  * Address Firefox 4+ setting `line-height` on `input` using `!important` in
242
300
  * the UA stylesheet.
243
301
  */
302
+
244
303
  button,
245
304
  input {
246
- line-height: normal; }
305
+ line-height: normal;
306
+ }
247
307
 
248
308
  /**
249
309
  * Address inconsistent `text-transform` inheritance for `button` and `select`.
@@ -251,9 +311,11 @@ input {
251
311
  * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
252
312
  * Correct `select` style inheritance in Firefox 4+ and Opera.
253
313
  */
314
+
254
315
  button,
255
316
  select {
256
- text-transform: none; }
317
+ text-transform: none;
318
+ }
257
319
 
258
320
  /**
259
321
  * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
@@ -262,78 +324,87 @@ select {
262
324
  * 3. Improve usability and consistency of cursor style between image-type
263
325
  * `input` and others.
264
326
  */
327
+
265
328
  button,
266
- html input[type="button"],
329
+ html input[type="button"], /* 1 */
267
330
  input[type="reset"],
268
331
  input[type="submit"] {
269
- -webkit-appearance: button;
270
- /* 2 */
271
- cursor: pointer;
272
- /* 3 */ }
332
+ -webkit-appearance: button; /* 2 */
333
+ cursor: pointer; /* 3 */
334
+ }
273
335
 
274
336
  /**
275
337
  * Re-set default cursor for disabled elements.
276
338
  */
339
+
277
340
  button[disabled],
278
341
  html input[disabled] {
279
- cursor: default; }
342
+ cursor: default;
343
+ }
280
344
 
281
345
  /**
282
346
  * 1. Address box sizing set to `content-box` in IE 8/9.
283
347
  * 2. Remove excess padding in IE 8/9.
284
348
  */
349
+
285
350
  input[type="checkbox"],
286
351
  input[type="radio"] {
287
- box-sizing: border-box;
288
- /* 1 */
289
- padding: 0;
290
- /* 2 */ }
352
+ box-sizing: border-box; /* 1 */
353
+ padding: 0; /* 2 */
354
+ }
291
355
 
292
356
  /**
293
357
  * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
294
358
  * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
295
359
  * (include `-moz` to future-proof).
296
360
  */
361
+
297
362
  input[type="search"] {
298
- -webkit-appearance: textfield;
299
- /* 1 */
300
- -moz-box-sizing: content-box;
301
- -webkit-box-sizing: content-box;
302
- /* 2 */
303
- box-sizing: content-box; }
363
+ -webkit-appearance: textfield; /* 1 */
364
+ -moz-box-sizing: content-box;
365
+ -webkit-box-sizing: content-box; /* 2 */
366
+ box-sizing: content-box;
367
+ }
304
368
 
305
369
  /**
306
370
  * Remove inner padding and search cancel button in Safari 5 and Chrome
307
371
  * on OS X.
308
372
  */
373
+
309
374
  input[type="search"]::-webkit-search-cancel-button,
310
375
  input[type="search"]::-webkit-search-decoration {
311
- -webkit-appearance: none; }
376
+ -webkit-appearance: none;
377
+ }
312
378
 
313
379
  /**
314
380
  * Remove inner padding and border in Firefox 4+.
315
381
  */
382
+
316
383
  button::-moz-focus-inner,
317
384
  input::-moz-focus-inner {
318
- border: 0;
319
- padding: 0; }
385
+ border: 0;
386
+ padding: 0;
387
+ }
320
388
 
321
389
  /**
322
390
  * 1. Remove default vertical scrollbar in IE 8/9.
323
391
  * 2. Improve readability and alignment in all browsers.
324
392
  */
393
+
325
394
  textarea {
326
- overflow: auto;
327
- /* 1 */
328
- vertical-align: top;
329
- /* 2 */ }
395
+ overflow: auto; /* 1 */
396
+ vertical-align: top; /* 2 */
397
+ }
330
398
 
331
399
  /* ==========================================================================
332
400
  Tables
333
401
  ========================================================================== */
402
+
334
403
  /**
335
404
  * Remove most spacing between table cells.
336
405
  */
406
+
337
407
  table {
338
- border-collapse: collapse;
339
- border-spacing: 0; }
408
+ border-collapse: collapse;
409
+ border-spacing: 0;
410
+ }
@@ -36,7 +36,7 @@ module Locomotive
36
36
 
37
37
  def log_page_into_backtrace(exception)
38
38
  line = self.template.line_offset
39
- line += (exception.respond_to?(:line) ? exception.line : 0) + 1
39
+ line += (exception.respond_to?(:line) ? exception.line || 0 : 0) + 1
40
40
 
41
41
  message = "#{self.template.filepath}:#{line}:in `#{self.name}'"
42
42
 
@@ -0,0 +1,35 @@
1
+ module Locomotive
2
+ module Wagon
3
+ module Generators
4
+ module Site
5
+
6
+ class Bootstrap2 < Base
7
+
8
+ def copy_sources
9
+ directory('.', self.destination, { recursive: true }, {
10
+ name: self.name,
11
+ version: Locomotive::Wagon::VERSION
12
+ })
13
+ end
14
+
15
+ def choose_haml_over_html
16
+ if yes?('Do you prefer HAML templates ?')
17
+ remove_file File.join(self.destination, 'app/views/pages/index.liquid')
18
+ remove_file File.join(self.destination, 'app/views/pages/404.liquid')
19
+ remove_file File.join(self.destination, 'app/views/snippets/footer.liquid')
20
+ else
21
+ remove_file File.join(self.destination, 'app/views/pages/index.liquid.haml')
22
+ remove_file File.join(self.destination, 'app/views/pages/404.liquid.haml')
23
+ remove_file File.join(self.destination, 'app/views/snippets/footer.liquid.haml')
24
+ end
25
+ end
26
+
27
+ end
28
+
29
+ Locomotive::Wagon::Generators::Site.register(:bootstrap2, Bootstrap2, %{
30
+ A LocomotiveCMS site with Twitter Bootstrap (v2.3.2) and Font Awesome (v3.2.1).
31
+ })
32
+ end
33
+ end
34
+ end
35
+ end
@@ -3,7 +3,7 @@ module Locomotive
3
3
  module Generators
4
4
  module Site
5
5
 
6
- class Bootstrap < Base
6
+ class Bootstrap3 < Base
7
7
 
8
8
  def copy_sources
9
9
  directory('.', self.destination, { recursive: true }, {
@@ -26,8 +26,8 @@ module Locomotive
26
26
 
27
27
  end
28
28
 
29
- Locomotive::Wagon::Generators::Site.register(:bootstrap, Bootstrap, %{
30
- A LocomotiveCMS site powered by Twitter bootstrap (v2.2.2).
29
+ Locomotive::Wagon::Generators::Site.register(:bootstrap3, Bootstrap3, %{
30
+ A LocomotiveCMS site powered by Twitter bootstrap (v3.0.0).
31
31
  })
32
32
  end
33
33
  end
@@ -27,7 +27,7 @@ module Locomotive
27
27
  end
28
28
 
29
29
  Locomotive::Wagon::Generators::Site.register(:foundation, Foundation, %{
30
- A LocomotiveCMS site powered by Foundation (v4.2.1).
30
+ A LocomotiveCMS site powered by Foundation (v4.3.2).
31
31
  })
32
32
  end
33
33
  end
@@ -94,7 +94,8 @@ end
94
94
 
95
95
  require 'locomotive/wagon/generators/site/base'
96
96
  require 'locomotive/wagon/generators/site/blank'
97
- require 'locomotive/wagon/generators/site/bootstrap'
97
+ require 'locomotive/wagon/generators/site/bootstrap2'
98
+ require 'locomotive/wagon/generators/site/bootstrap3'
98
99
  require 'locomotive/wagon/generators/site/foundation'
99
100
  require 'locomotive/wagon/generators/site/unzip'
100
101
  require 'locomotive/wagon/generators/site/cloned'
@@ -7,8 +7,6 @@ module Locomotive
7
7
 
8
8
  @@forbidden_attributes = %w{_id _version _index}
9
9
 
10
- attr_reader :_source
11
-
12
10
  def initialize(source)
13
11
  @_source = source
14
12
  end
@@ -37,6 +35,10 @@ module Locomotive
37
35
  self.class.liquify(*records, &block)
38
36
  end
39
37
 
38
+ def _source
39
+ @_source
40
+ end
41
+
40
42
  end
41
43
  end
42
44
  end
@@ -4,10 +4,10 @@ module Locomotive
4
4
  module Drops
5
5
  class ContentEntry < Base
6
6
 
7
- delegate :seo_title, :meta_keywords, :meta_description, :to => '_source'
7
+ delegate :seo_title, :meta_keywords, :meta_description, to: :@_source
8
8
 
9
9
  def _label
10
- @_label ||= self._source._label
10
+ @_label ||= @_source._label
11
11
  end
12
12
 
13
13
  def _permalink
@@ -32,10 +32,10 @@ module Locomotive
32
32
  end
33
33
 
34
34
  def before_method(meth)
35
- return '' if self._source.nil?
35
+ return '' if @_source.nil?
36
36
 
37
37
  if not @@forbidden_attributes.include?(meth.to_s)
38
- self._source.send(meth)
38
+ @_source.send(meth)
39
39
  else
40
40
  nil
41
41
  end
@@ -5,16 +5,16 @@ module Locomotive
5
5
  class Page < Base
6
6
 
7
7
  delegate :title, :slug, :fullpath, :parent, :depth, :seo_title, :redirect_url, :meta_description, :meta_keywords,
8
- :templatized?, :published?, :redirect?, :listed?, :handle, to: '_source'
8
+ :templatized?, :published?, :redirect?, :listed?, :handle, to: :@_source
9
9
 
10
10
  def children
11
- _children = _source.children || []
11
+ _children = @_source.children || []
12
12
  _children = _children.sort { |a, b| a.position.to_i <=> b.position.to_i }
13
13
  @children ||= liquify(*_children)
14
14
  end
15
15
 
16
16
  def content_type
17
- ProxyCollection.new(_source.content_type) if _source.content_type
17
+ ProxyCollection.new(@_source.content_type) if @_source.content_type
18
18
  end
19
19
 
20
20
  def breadcrumbs
@@ -5,18 +5,18 @@ module Locomotive
5
5
  class Site < Base
6
6
  include Scopeable
7
7
 
8
- delegate :name, :seo_title, :meta_description, :meta_keywords, :to => '_source'
8
+ delegate :name, :seo_title, :meta_description, :meta_keywords, to: :@_source
9
9
 
10
10
  def index
11
11
  @index ||= self.mounting_point.pages['index']
12
12
  end
13
13
 
14
14
  def pages
15
- @pages ||= liquify(*apply_scope(self.mounting_point.pages.values))
15
+ liquify(*apply_scope(self.mounting_point.pages.values))
16
16
  end
17
17
 
18
18
  def domains
19
- self._source.domains
19
+ @_source.domains
20
20
  end
21
21
 
22
22
  end
@@ -46,8 +46,9 @@ module Locomotive
46
46
 
47
47
  page = case handle
48
48
  when Locomotive::Mounter::Models::Page then handle
49
+ when Liquid::Drops::Page then handle.send(:_source)
49
50
  when String then fetch_page(mounting_point, handle)
50
- when Liquid::Drops::ContentEntry then fetch_page(mounting_point, handle._source, true)
51
+ when Liquid::Drops::ContentEntry then fetch_page(mounting_point, handle.send(:_source), true)
51
52
  when Locomotive::Mounter::Models::ContentEntry then fetch_page(mounting_point, handle, true)
52
53
  else
53
54
  nil
@@ -38,7 +38,7 @@ module BetterErrors
38
38
  scope = self.liquid_context.scopes.last.clone
39
39
 
40
40
  scope.delete_if { |k, _| %w(models contents params session).include?(k) }.tap do |_scope|
41
- _scope['site'] = _scope['site']._source.to_hash
41
+ _scope['site'] = _scope['site'].send(:_source).to_hash
42
42
  _scope['page'] = _scope['page'].to_hash.delete_if { |k, _| %w(template).include?(k) }
43
43
  end
44
44
  else