locomotivecms_wagon 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. data/.gitignore +27 -0
  2. data/.rspec +2 -0
  3. data/Gemfile +8 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +68 -0
  6. data/Rakefile +57 -0
  7. data/TODO +57 -0
  8. data/bin/wagon +9 -0
  9. data/generators/blank/Gemfile.tt +20 -0
  10. data/generators/blank/app/content_types/.empty_directory +1 -0
  11. data/generators/blank/app/views/pages/404.liquid +11 -0
  12. data/generators/blank/app/views/pages/index.liquid +19 -0
  13. data/generators/blank/app/views/snippets/.empty_directory +1 -0
  14. data/generators/blank/config/deploy.yml +12 -0
  15. data/generators/blank/config/site.yml.tt +16 -0
  16. data/generators/blank/config/translations.yml +8 -0
  17. data/generators/blank/config.ru +3 -0
  18. data/generators/blank/data/.empty_directory +1 -0
  19. data/generators/blank/public/fonts/.empty_directory +1 -0
  20. data/generators/blank/public/images/.empty_directory +1 -0
  21. data/generators/blank/public/javascripts/.empty_directory +1 -0
  22. data/generators/blank/public/samples/.empty_directory +1 -0
  23. data/generators/blank/public/stylesheets/.empty_directory +1 -0
  24. data/generators/bootstrap/Gemfile.tt +20 -0
  25. data/generators/bootstrap/app/content_types/.empty_directory +1 -0
  26. data/generators/bootstrap/app/views/pages/404.liquid +13 -0
  27. data/generators/bootstrap/app/views/pages/404.liquid.haml +10 -0
  28. data/generators/bootstrap/app/views/pages/index.liquid +89 -0
  29. data/generators/bootstrap/app/views/pages/index.liquid.haml +72 -0
  30. data/generators/bootstrap/app/views/snippets/footer.liquid +3 -0
  31. data/generators/bootstrap/app/views/snippets/footer.liquid.haml +2 -0
  32. data/generators/bootstrap/config/deploy.yml +12 -0
  33. data/generators/bootstrap/config/site.yml.tt +16 -0
  34. data/generators/bootstrap/config/translations.yml +8 -0
  35. data/generators/bootstrap/config.ru +3 -0
  36. data/generators/bootstrap/data/.empty_directory +1 -0
  37. data/generators/bootstrap/public/fonts/FontAwesome.otf +0 -0
  38. data/generators/bootstrap/public/fonts/font-awesome-ie7.min.css +23 -0
  39. data/generators/bootstrap/public/fonts/font-awesome.css +469 -0
  40. data/generators/bootstrap/public/fonts/font-awesome.min.css +34 -0
  41. data/generators/bootstrap/public/fonts/fontawesome-webfont.eot +0 -0
  42. data/generators/bootstrap/public/fonts/fontawesome-webfont.ttf +0 -0
  43. data/generators/bootstrap/public/fonts/fontawesome-webfont.woff +0 -0
  44. data/generators/bootstrap/public/javascripts/bootstrap.js +2159 -0
  45. data/generators/bootstrap/public/javascripts/bootstrap.min.js +6 -0
  46. data/generators/bootstrap/public/samples/.empty_directory +1 -0
  47. data/generators/bootstrap/public/stylesheets/application.css.scss +39 -0
  48. data/generators/bootstrap/public/stylesheets/bootstrap-responsive.css +1092 -0
  49. data/generators/bootstrap/public/stylesheets/bootstrap-responsive.min.css +9 -0
  50. data/generators/bootstrap/public/stylesheets/bootstrap.css +5652 -0
  51. data/generators/bootstrap/public/stylesheets/bootstrap.min.css +726 -0
  52. data/generators/content_type/app/content_types/%name%.yml.tt +58 -0
  53. data/generators/content_type/data/%name%.yml.tt +24 -0
  54. data/generators/foundation/Gemfile.tt +20 -0
  55. data/generators/foundation/app/content_types/.empty_directory +1 -0
  56. data/generators/foundation/app/views/pages/404.liquid +13 -0
  57. data/generators/foundation/app/views/pages/404.liquid.haml +10 -0
  58. data/generators/foundation/app/views/pages/index.liquid +152 -0
  59. data/generators/foundation/app/views/pages/index.liquid.haml +130 -0
  60. data/generators/foundation/app/views/snippets/footer.liquid +16 -0
  61. data/generators/foundation/app/views/snippets/footer.liquid.haml +23 -0
  62. data/generators/foundation/config/deploy.yml +12 -0
  63. data/generators/foundation/config/site.yml.tt +16 -0
  64. data/generators/foundation/config/translations.yml +8 -0
  65. data/generators/foundation/config.ru +3 -0
  66. data/generators/foundation/data/.empty_directory +1 -0
  67. data/generators/foundation/public/fonts/.empty_directory +1 -0
  68. data/generators/foundation/public/javascripts/foundation/foundation.alerts.js +50 -0
  69. data/generators/foundation/public/javascripts/foundation/foundation.clearing.js +480 -0
  70. data/generators/foundation/public/javascripts/foundation/foundation.cookie.js +74 -0
  71. data/generators/foundation/public/javascripts/foundation/foundation.dropdown.js +130 -0
  72. data/generators/foundation/public/javascripts/foundation/foundation.forms.js +395 -0
  73. data/generators/foundation/public/javascripts/foundation/foundation.joyride.js +612 -0
  74. data/generators/foundation/public/javascripts/foundation/foundation.js +372 -0
  75. data/generators/foundation/public/javascripts/foundation/foundation.magellan.js +130 -0
  76. data/generators/foundation/public/javascripts/foundation/foundation.orbit.js +365 -0
  77. data/generators/foundation/public/javascripts/foundation/foundation.placeholder.js +159 -0
  78. data/generators/foundation/public/javascripts/foundation/foundation.reveal.js +270 -0
  79. data/generators/foundation/public/javascripts/foundation/foundation.section.js +272 -0
  80. data/generators/foundation/public/javascripts/foundation/foundation.tooltips.js +195 -0
  81. data/generators/foundation/public/javascripts/foundation/foundation.topbar.js +225 -0
  82. data/generators/foundation/public/javascripts/foundation.min.js +14 -0
  83. data/generators/foundation/public/javascripts/vendor/custom.modernizr.js +4 -0
  84. data/generators/foundation/public/javascripts/vendor/jquery.js +9597 -0
  85. data/generators/foundation/public/javascripts/vendor/zepto.js +1884 -0
  86. data/generators/foundation/public/samples/.empty_directory +1 -0
  87. data/generators/foundation/public/stylesheets/foundation.css +3818 -0
  88. data/generators/foundation/public/stylesheets/foundation.min.css +1 -0
  89. data/generators/foundation/public/stylesheets/normalize.css +396 -0
  90. data/generators/page/template.liquid.haml.tt +35 -0
  91. data/generators/page/template.liquid.tt +1 -0
  92. data/generators/snippet/template.liquid.haml.tt +4 -0
  93. data/generators/snippet/template.liquid.tt +4 -0
  94. data/lib/locomotive/wagon/cli.rb +238 -0
  95. data/lib/locomotive/wagon/exceptions.rb +35 -0
  96. data/lib/locomotive/wagon/generators/content_type.rb +47 -0
  97. data/lib/locomotive/wagon/generators/page.rb +63 -0
  98. data/lib/locomotive/wagon/generators/site/base.rb +30 -0
  99. data/lib/locomotive/wagon/generators/site/blank.rb +23 -0
  100. data/lib/locomotive/wagon/generators/site/bootstrap.rb +35 -0
  101. data/lib/locomotive/wagon/generators/site/foundation.rb +35 -0
  102. data/lib/locomotive/wagon/generators/site/unzip.rb +81 -0
  103. data/lib/locomotive/wagon/generators/site.rb +99 -0
  104. data/lib/locomotive/wagon/generators/snippet.rb +60 -0
  105. data/lib/locomotive/wagon/liquid/drops/base.rb +44 -0
  106. data/lib/locomotive/wagon/liquid/drops/content_entry.rb +48 -0
  107. data/lib/locomotive/wagon/liquid/drops/content_types.rb +121 -0
  108. data/lib/locomotive/wagon/liquid/drops/page.rb +36 -0
  109. data/lib/locomotive/wagon/liquid/drops/site.rb +21 -0
  110. data/lib/locomotive/wagon/liquid/errors.rb +7 -0
  111. data/lib/locomotive/wagon/liquid/filters/date.rb +98 -0
  112. data/lib/locomotive/wagon/liquid/filters/html.rb +154 -0
  113. data/lib/locomotive/wagon/liquid/filters/misc.rb +28 -0
  114. data/lib/locomotive/wagon/liquid/filters/resize.rb +18 -0
  115. data/lib/locomotive/wagon/liquid/filters/text.rb +50 -0
  116. data/lib/locomotive/wagon/liquid/filters/translate.rb +24 -0
  117. data/lib/locomotive/wagon/liquid/patches.rb +47 -0
  118. data/lib/locomotive/wagon/liquid/tags/consume.rb +58 -0
  119. data/lib/locomotive/wagon/liquid/tags/csrf.rb +34 -0
  120. data/lib/locomotive/wagon/liquid/tags/editable/base.rb +46 -0
  121. data/lib/locomotive/wagon/liquid/tags/editable/control.rb +19 -0
  122. data/lib/locomotive/wagon/liquid/tags/editable/file.rb +15 -0
  123. data/lib/locomotive/wagon/liquid/tags/editable/long_text.rb +15 -0
  124. data/lib/locomotive/wagon/liquid/tags/editable/short_text.rb +15 -0
  125. data/lib/locomotive/wagon/liquid/tags/editable.rb +5 -0
  126. data/lib/locomotive/wagon/liquid/tags/extends.rb +25 -0
  127. data/lib/locomotive/wagon/liquid/tags/google_analytics.rb +28 -0
  128. data/lib/locomotive/wagon/liquid/tags/inline_editor.rb +16 -0
  129. data/lib/locomotive/wagon/liquid/tags/locale_switcher.rb +106 -0
  130. data/lib/locomotive/wagon/liquid/tags/nav.rb +167 -0
  131. data/lib/locomotive/wagon/liquid/tags/paginate.rb +105 -0
  132. data/lib/locomotive/wagon/liquid/tags/seo.rb +74 -0
  133. data/lib/locomotive/wagon/liquid/tags/snippet.rb +44 -0
  134. data/lib/locomotive/wagon/liquid/tags/with_scope.rb +43 -0
  135. data/lib/locomotive/wagon/liquid.rb +19 -0
  136. data/lib/locomotive/wagon/listen.rb +57 -0
  137. data/lib/locomotive/wagon/logger.rb +54 -0
  138. data/lib/locomotive/wagon/misc/core_ext.rb +29 -0
  139. data/lib/locomotive/wagon/misc/dragonfly.rb +79 -0
  140. data/lib/locomotive/wagon/misc/httparty.rb +46 -0
  141. data/lib/locomotive/wagon/misc/i18n.rb +2 -0
  142. data/lib/locomotive/wagon/misc/will_paginate.rb +16 -0
  143. data/lib/locomotive/wagon/misc.rb +5 -0
  144. data/lib/locomotive/wagon/server/dynamic_assets.rb +31 -0
  145. data/lib/locomotive/wagon/server/entry_submission.rb +116 -0
  146. data/lib/locomotive/wagon/server/favicon.rb +17 -0
  147. data/lib/locomotive/wagon/server/locale.rb +42 -0
  148. data/lib/locomotive/wagon/server/logging.rb +32 -0
  149. data/lib/locomotive/wagon/server/middleware.rb +59 -0
  150. data/lib/locomotive/wagon/server/not_found.rb +19 -0
  151. data/lib/locomotive/wagon/server/page.rb +61 -0
  152. data/lib/locomotive/wagon/server/path.rb +34 -0
  153. data/lib/locomotive/wagon/server/renderer.rb +105 -0
  154. data/lib/locomotive/wagon/server/templatized_page.rb +32 -0
  155. data/lib/locomotive/wagon/server.rb +81 -0
  156. data/lib/locomotive/wagon/standalone_server.rb +28 -0
  157. data/lib/locomotive/wagon/version.rb +5 -0
  158. data/lib/locomotive/wagon.rb +163 -0
  159. data/locales/de.yml +156 -0
  160. data/locales/en.yml +177 -0
  161. data/locales/es.yml +132 -0
  162. data/locales/et.yml +153 -0
  163. data/locales/fr.yml +146 -0
  164. data/locales/it.yml +154 -0
  165. data/locales/nb.yml +190 -0
  166. data/locales/nl.yml +159 -0
  167. data/locales/pl.yml +202 -0
  168. data/locales/pt-BR.yml +138 -0
  169. data/locales/ru.yml +223 -0
  170. data/locomotivecms_wagon.gemspec +44 -0
  171. data/spec/integration/cassettes/pull.yml +590 -0
  172. data/spec/integration/cassettes/push.yml +810 -0
  173. data/spec/integration/integration_helper.rb +14 -0
  174. data/spec/integration/server_spec.rb +38 -0
  175. data/spec/integration/sites_spec.rb +29 -0
  176. data/spec/spec_helper.rb +12 -0
  177. data/spec/support/helpers.rb +13 -0
  178. metadata +544 -0
@@ -0,0 +1,58 @@
1
+ # Public name of this content type
2
+ name: <%= config[:name].humanize %>
3
+
4
+ # TODO: explain
5
+ slug: <%= config[:name] %>
6
+
7
+ # Explanation for the backoffice
8
+ description: A description of the content type for the editors
9
+
10
+ # Default field (e.g title)
11
+ label_field_name: <%= config[:fields].first.name %>
12
+
13
+ # Order of entries
14
+ order_by: manually # default: manually, also available: created_at or any field slug
15
+
16
+ # Order direction
17
+ # order_direction: asc # default: asc, also available: desc
18
+
19
+ # Display entries grouped by <field> in the backoffice
20
+ # group_by: <your field>
21
+
22
+ # Activate public 'create' API (e.g for a contact form)
23
+ # public_submission_enabled: false
24
+
25
+ # Emails to be notified on new entries using the public API
26
+ # public_submission_accounts: ['john@acme.net']
27
+
28
+ # Describe each field. The name shoud always be an underscored string
29
+ fields: <% config[:fields].each_with_index do |field, index| %>
30
+ - <%= field.name -%>: # Name of the field
31
+ label: <%= field.name.humanize %>
32
+ type: <%= field.type %>
33
+ required: <%= index == 0 ? true : field.required %>
34
+ hint: A description of the field for the editors
35
+ localized: false<% if field.type == 'text' %>
36
+ # Enable or not the RTE [html|text]
37
+ # text_formatting: html<% end -%><% if field.type == 'select' -%>
38
+ # if localized, use
39
+ # en: ['option1_en', 'option2_en']
40
+ # fr: ['option1_fr', 'option2_fr']
41
+ select_options: ['option 1', 'option 2', 'option 3']<% end -%><% if field.type == 'belongs_to'%>
42
+ # Slug of the target content type (eg post if this content type is a comment)
43
+ class_name: <your class slug><% end -%><% if field.type == 'has_many' -%>
44
+ # Define the slug of the target content type (eg. comments)
45
+ class_name: <your class slug>
46
+ # Define the name of the field referring to <%= config[:name].humanize -%> in the target content type (eg. post)
47
+ inverse_of: <field in your target content type>
48
+ # If you want to manage the entries of the relationship directly from the source entry
49
+ ui_enabled: true
50
+ <% end -%><% if field.type == 'many_to_many' -%>
51
+ # Define the slug of the target content type
52
+ class_name: <your class slug>
53
+ inverse_of: <field in your target content type>
54
+ # If you want to manage the entries of the relationship directly from the source entry
55
+ ui_enabled: true
56
+ <% end -%>
57
+
58
+ <% end -%>
@@ -0,0 +1,24 @@
1
+ <% 4.times do |i| -%>
2
+ - "Sample <%= i + 1 %>":
3
+ <% config[:fields][1..-1].each do |field| -%>
4
+ <% case field.type -%>
5
+ <% when 'string' -%>
6
+ <%= field.name -%>: "<%= Faker::Lorem.sentence -%>"
7
+ <% when 'text' -%>
8
+ <%= field.name -%>: "<%= Faker::Lorem.paragraph -%>"
9
+ <% when 'select' -%>
10
+ <%= field.name -%>: null # Use the value of a select option defined in the app/content_types/<%= config[:name] -%>.rb file.
11
+ <% when 'boolean' -%>
12
+ <%= field.name -%>: true # Or false
13
+ <% when 'date' -%>
14
+ <%= field.name -%>: <%= Time.now.strftime('%Y/%M/%d') -%> # YYYY/MM/DD
15
+ <% when 'file' -%>
16
+ <%= field.name -%>: null # Path to a file in the public/samples folder or to a remote and external file.
17
+ <% when 'belongs_to' -%>
18
+ <%= field.name -%>: null # Permalink of the target entry
19
+ <% when 'many_to_many' -%>
20
+ <%= field.name -%>: [] # Permalink of the target entries
21
+ <% end -%>
22
+ <% end -%>
23
+
24
+ <% end -%>
@@ -0,0 +1,20 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # ruby '1.9.3'
4
+
5
+ gem 'locomotivecms_wagon', '<%= config[:version] -%>'
6
+
7
+ group :development do
8
+ # Mac OS X
9
+ gem 'rb-fsevent', '~> 0.9.1', :require => RUBY_PLATFORM.include?('darwin') && 'rb-fsevent'
10
+
11
+ # TODO: Linux
12
+
13
+ # TODO: Windows
14
+ end
15
+
16
+ group :misc do
17
+ # Add your extra gems here
18
+ # gem 'susy', require: 'susy'
19
+ # gem 'redcarpet', require: 'redcarpet'
20
+ end
@@ -0,0 +1 @@
1
+ .empty_directory
@@ -0,0 +1,13 @@
1
+ ---
2
+ title: Page not found
3
+ published: true
4
+ ---
5
+ {% extends index %}
6
+
7
+ {% block 'main' %}
8
+
9
+ <div class="panel">
10
+ <h1>Arrggggh, page not found</h1>
11
+ </div>
12
+
13
+ {% endblock %}
@@ -0,0 +1,10 @@
1
+ ---
2
+ title: Page not found
3
+ published: true
4
+ ---
5
+ {% extends index %}
6
+
7
+ {% block 'main' %}
8
+ .panel
9
+ %h1 Arrggggh, page not found
10
+ {% endblock %}
@@ -0,0 +1,152 @@
1
+ ---
2
+ title: Home page
3
+ published: true
4
+ ---
5
+ <!DOCTYPE html>
6
+ <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
7
+ <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
8
+
9
+ <head>
10
+ <meta charset="utf-8" />
11
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
12
+ <title>{{ page.title }}</title>
13
+
14
+ {{ 'normalize.css' | stylesheet_tag }}
15
+
16
+ {{ 'foundation.css' | stylesheet_tag }}
17
+
18
+ {{ 'vendor/custom.modernizr.js' | javascript_tag }}
19
+
20
+ </head>
21
+ <body>
22
+
23
+ <div class="row">
24
+ <div class="large-12 columns">
25
+ <h2>Welcome to Foundation</h2>
26
+ <p>This is version 4.0.9.</p>
27
+ <hr />
28
+ </div>
29
+ </div>
30
+
31
+ {% block 'main' %}
32
+
33
+ <div class="row">
34
+ <div class="large-8 columns">
35
+ <h3>The Grid</h3>
36
+
37
+ <!-- Grid Example -->
38
+ <div class="row">
39
+ <div class="large-12 columns">
40
+ <div class="panel">
41
+ <p>This is a twelve column section in a row. Each of these includes a div.panel element so you can see where the columns are - it's not required at all for the grid.</p>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ <div class="row">
46
+ <div class="large-6 columns">
47
+ <div class="panel">
48
+ <p>Six columns</p>
49
+ </div>
50
+ </div>
51
+ <div class="large-6 columns">
52
+ <div class="panel">
53
+ <p>Six columns</p>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <div class="row">
58
+ <div class="large-4 columns">
59
+ <div class="panel">
60
+ <p>Four columns</p>
61
+ </div>
62
+ </div>
63
+ <div class="large-4 columns">
64
+ <div class="panel">
65
+ <p>Four columns</p>
66
+ </div>
67
+ </div>
68
+ <div class="large-4 columns">
69
+ <div class="panel">
70
+ <p>Four columns</p>
71
+ </div>
72
+ </div>
73
+ </div>
74
+
75
+ <h3>Buttons</h3>
76
+
77
+ <div class="row">
78
+ <div class="large-6 columns">
79
+ <p><a href="#" class="small button">Small Button</a></p>
80
+ <p><a href="#" class="button">Medium Button</a></p>
81
+ <p><a href="#" class="large button">Large Button</a></p>
82
+ </div>
83
+ <div class="large-6 columns">
84
+ <p><a href="#" class="small alert button">Small Alert Button</a></p>
85
+ <p><a href="#" class="success button">Medium Success Button</a></p>
86
+ <p><a href="#" class="large secondary button">Large Secondary Button</a></p>
87
+ </div>
88
+ </div>
89
+ </div>
90
+
91
+ <div class="large-4 columns">
92
+ <h4>Getting Started</h4>
93
+ <p>We're stoked you want to try Foundation! To get going, this file (index.html) includes some basic styles you can modify, play around with, or totally destroy to get going.</p>
94
+
95
+ <h4>Other Resources</h4>
96
+ <p>Once you've exhausted the fun in this document, you should check out:</p>
97
+ <ul class="disc">
98
+ <li><a href="http://foundation.zurb.com/docs">Foundation Documentation</a><br />Everything you need to know about using the framework.</li>
99
+ <li><a href="http://github.com/zurb/foundation">Foundation on Github</a><br />Latest code, issue reports, feature requests and more.</li>
100
+ <li><a href="http://twitter.com/foundationzurb">@foundationzurb</a><br />Ping us on Twitter if you have questions. If you build something with this we'd love to see it (and send you a totally boss sticker).</li>
101
+ </ul>
102
+ </div>
103
+ </div>
104
+
105
+ {% endblock %}
106
+
107
+ {% include footer %}
108
+
109
+ <script>
110
+ document.write('<script src=' +
111
+ ('__proto__' in {} ? '{{ site.root }}javascripts/vendor/zepto' : '{{ site.root }}javascripts/vendor/jquery') +
112
+ '.js><\/script>')
113
+ </script>
114
+ {{ 'foundation.min.js' | javascript_tag }}
115
+
116
+ <!--
117
+
118
+ {{ 'foundation/foundation.js' | javascript_tag }}
119
+
120
+ {{ 'foundation/foundation.alerts.js' | javascript_tag }}
121
+
122
+ {{ 'foundation/foundation.clearing.js' | javascript_tag }}
123
+
124
+ {{ 'foundation/foundation.cookie.js' | javascript_tag }}
125
+
126
+ {{ 'foundation/foundation.dropdown.js' | javascript_tag }}
127
+
128
+ {{ 'foundation/foundation.forms.js' | javascript_tag }}
129
+
130
+ {{ 'foundation/foundation.joyride.js' | javascript_tag }}
131
+
132
+ {{ 'foundation/foundation.magellan.js' | javascript_tag }}
133
+
134
+ {{ 'foundation/foundation.orbit.js' | javascript_tag }}
135
+
136
+ {{ 'foundation/foundation.placeholder.js' | javascript_tag }}
137
+
138
+ {{ 'foundation/foundation.reveal.js' | javascript_tag }}
139
+
140
+ {{ 'foundation/foundation.section.js' | javascript_tag }}
141
+
142
+ {{ 'foundation/foundation.tooltips.js' | javascript_tag }}
143
+
144
+ {{ 'foundation/foundation.topbar.js' | javascript_tag }}
145
+
146
+ -->
147
+
148
+ <script>
149
+ $(document).foundation();
150
+ </script>
151
+ </body>
152
+ </html>
@@ -0,0 +1,130 @@
1
+ ---
2
+ title: Home page
3
+ published: true
4
+ ---
5
+ !!!
6
+ /[if IE 8] <html class="no-js lt-ie9" lang="en">
7
+ / [if gt IE 8]><!
8
+ %html.no-js{:lang => "en"}
9
+ / <![endif]
10
+ %head
11
+ %meta{:charset => "utf-8"}/
12
+ %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}/
13
+ %title {{ page.title }}
14
+ {{ 'normalize.css' | stylesheet_tag }}
15
+
16
+ {{ 'foundation.css' | stylesheet_tag }}
17
+
18
+ {{ 'vendor/custom.modernizr.js' | javascript_tag }}
19
+ %body
20
+ .row
21
+ .large-12.columns
22
+ %h2 Welcome to Foundation
23
+ %p This is version 4.0.9.
24
+ %hr/
25
+ {% block 'main' %}
26
+ .row
27
+ .large-8.columns
28
+ %h3 The Grid
29
+ / Grid Example
30
+ .row
31
+ .large-12.columns
32
+ .panel
33
+ %p This is a twelve column section in a row. Each of these includes a div.panel element so you can see where the columns are - it's not required at all for the grid.
34
+ .row
35
+ .large-6.columns
36
+ .panel
37
+ %p Six columns
38
+ .large-6.columns
39
+ .panel
40
+ %p Six columns
41
+ .row
42
+ .large-4.columns
43
+ .panel
44
+ %p Four columns
45
+ .large-4.columns
46
+ .panel
47
+ %p Four columns
48
+ .large-4.columns
49
+ .panel
50
+ %p Four columns
51
+ %h3 Buttons
52
+ .row
53
+ .large-6.columns
54
+ %p
55
+ %a.small.button{:href => "#"} Small Button
56
+ %p
57
+ %a.button{:href => "#"} Medium Button
58
+ %p
59
+ %a.large.button{:href => "#"} Large Button
60
+ .large-6.columns
61
+ %p
62
+ %a.small.alert.button{:href => "#"} Small Alert Button
63
+ %p
64
+ %a.success.button{:href => "#"} Medium Success Button
65
+ %p
66
+ %a.large.secondary.button{:href => "#"} Large Secondary Button
67
+ .large-4.columns
68
+ %h4 Getting Started
69
+ %p We're stoked you want to try Foundation! To get going, this file (index.html) includes some basic styles you can modify, play around with, or totally destroy to get going.
70
+ %h4 Other Resources
71
+ %p Once you've exhausted the fun in this document, you should check out:
72
+ %ul.disc
73
+ %li
74
+ %a{:href => "http://foundation.zurb.com/docs"} Foundation Documentation
75
+ = succeed "Everything" do
76
+ %br/
77
+ you need to know about using the framework.
78
+ %li
79
+ %a{:href => "http://github.com/zurb/foundation"} Foundation on Github
80
+ = succeed "Latest" do
81
+ %br/
82
+ code, issue reports, feature requests and more.
83
+ %li
84
+ %a{:href => "http://twitter.com/foundationzurb"} @foundationzurb
85
+ = succeed "Ping" do
86
+ %br/
87
+ us on Twitter if you have questions. If you build something with this we'd love to see it (and send you a totally boss sticker).
88
+ {% endblock %}
89
+
90
+ {% include footer %}
91
+
92
+ :javascript
93
+ document.write('<script src=' +
94
+ ('__proto__' in {} ? '{{ site.root }}javascripts/vendor/zepto' : '{{ site.root }}javascripts/vendor/jquery') +
95
+ '.js><\/script>')
96
+
97
+ {{ 'foundation.min.js' | javascript_tag }}
98
+
99
+ /
100
+ {{ 'foundation/foundation.js' | javascript_tag }}
101
+
102
+ {{ 'foundation/foundation.alerts.js' | javascript_tag }}
103
+
104
+ {{ 'foundation/foundation.clearing.js' | javascript_tag }}
105
+
106
+ {{ 'foundation/foundation.cookie.js' | javascript_tag }}
107
+
108
+ {{ 'foundation/foundation.dropdown.js' | javascript_tag }}
109
+
110
+ {{ 'foundation/foundation.forms.js' | javascript_tag }}
111
+
112
+ {{ 'foundation/foundation.joyride.js' | javascript_tag }}
113
+
114
+ {{ 'foundation/foundation.magellan.js' | javascript_tag }}
115
+
116
+ {{ 'foundation/foundation.orbit.js' | javascript_tag }}
117
+
118
+ {{ 'foundation/foundation.placeholder.js' | javascript_tag }}
119
+
120
+ {{ 'foundation/foundation.reveal.js' | javascript_tag }}
121
+
122
+ {{ 'foundation/foundation.section.js' | javascript_tag }}
123
+
124
+ {{ 'foundation/foundation.tooltips.js' | javascript_tag }}
125
+
126
+ {{ 'foundation/foundation.topbar.js' | javascript_tag }}
127
+
128
+ :javascript
129
+ $(document).foundation();
130
+
@@ -0,0 +1,16 @@
1
+ <footer class="row full-width">
2
+ <div class="large-5 columns">
3
+ <h6><strong>Made by ZURB</strong></h6>
4
+ <p>Foundation is made by <a href="http://www.zurb.com/">ZURB</a>, a product design company in Campbell, California. We've put more than 14 years of experience building web products, services and websites into this framework. <a href="http://foundation.zurb.com/about.php">Foundation Info and Goodies →</a></p>
5
+ </div>
6
+
7
+ <div class="large-3 columns">
8
+ <h6><strong>Using Foundation?</strong></h6>
9
+ <p>Let us know how you're using Foundation and we might feature you as an example! <a href="mailto:foundation@zurb.com?subject=I'm%20using%20Foundation">Get in touch →</a></p>
10
+ </div>
11
+
12
+ <div class="large-4 columns">
13
+ <h6><strong>Need some help?</strong></h6>
14
+ <p>For answers or help visit the <a href="http://foundation.zurb.com/docs/support.html">Support page</a>.</p>
15
+ </div>
16
+ </footer>
@@ -0,0 +1,23 @@
1
+ %footer.row.full-width
2
+ .large-5.columns
3
+ %h6
4
+ %strong Made by ZURB
5
+ %p
6
+ Foundation is made by
7
+ = succeed "," do
8
+ %a{:href => "http://www.zurb.com/"} ZURB
9
+ a product design company in Campbell, California. We've put more than 14 years of experience building web products, services and websites into this framework.
10
+ %a{:href => "http://foundation.zurb.com/about.php"} Foundation Info and Goodies →
11
+ .large-3.columns
12
+ %h6
13
+ %strong Using Foundation?
14
+ %p
15
+ Let us know how you're using Foundation and we might feature you as an example!
16
+ %a{:href => "mailto:foundation@zurb.com?subject=I'm%20using%20Foundation"} Get in touch →
17
+ .large-4.columns
18
+ %h6
19
+ %strong Need some help?
20
+ %p
21
+ For answers or help visit the
22
+ = succeed "." do
23
+ %a{:href => "http://foundation.zurb.com/docs/support.html"} Support page
@@ -0,0 +1,12 @@
1
+ development:
2
+ host: dev.example.com
3
+ email: john@doe.net
4
+ password: apassword
5
+ staging:
6
+ host: staging.example.com
7
+ email: john@doe.net
8
+ password: apassword
9
+ production:
10
+ host: www.example.com
11
+ email: john@doe.net
12
+ password: apassword
@@ -0,0 +1,16 @@
1
+ # TODO: explain it
2
+ name: <%= config[:name] %>
3
+
4
+ # TODO: explain it
5
+ # subdomain: sample
6
+
7
+ # TODO: explain it
8
+ # domains: [www.example.com, example.com]
9
+
10
+ # TODO: explain it
11
+ locales: [en]
12
+
13
+ # TODO: explain it
14
+ seo_title: <%= @name %>
15
+ meta_keywords: "some meta keywords"
16
+ meta_description: "some meta description"
@@ -0,0 +1,8 @@
1
+ # Your translations go here. To be used with the 'translate' liquid filter
2
+ # Example:
3
+ # {{ 'hello_world' | translate }}
4
+ #
5
+
6
+ # hello_world:
7
+ # en: Hello world !
8
+ # fr: Bonjour le monde !
@@ -0,0 +1,3 @@
1
+ require 'locomotive/wagon/standalone_server'
2
+
3
+ run Locomotive::Wagon::StandaloneServer.new(File.expand_path('.'))
@@ -0,0 +1 @@
1
+ .empty_directory
@@ -0,0 +1 @@
1
+ .empty_directory
@@ -0,0 +1,50 @@
1
+ /*jslint unparam: true, browser: true, indent: 2 */
2
+
3
+ ;(function ($, window, document, undefined) {
4
+ 'use strict';
5
+
6
+ Foundation.libs.alerts = {
7
+ name : 'alerts',
8
+
9
+ version : '4.0.0',
10
+
11
+ settings : {
12
+ speed: 300, // fade out speed
13
+ callback: function (){}
14
+ },
15
+
16
+ init : function (scope, method, options) {
17
+ this.scope = scope || this.scope;
18
+
19
+ if (typeof method === 'object') {
20
+ $.extend(true, this.settings, method);
21
+ }
22
+
23
+ if (typeof method != 'string') {
24
+ if (!this.settings.init) this.events();
25
+
26
+ return this.settings.init;
27
+ } else {
28
+ return this[method].call(this, options);
29
+ }
30
+ },
31
+
32
+ events : function () {
33
+ var self = this;
34
+
35
+ $(this.scope).on('click.fndtn.alerts', '[data-alert] a.close', function (e) {
36
+ e.preventDefault();
37
+ $(this).closest("[data-alert]").fadeOut(self.speed, function () {
38
+ $(this).remove();
39
+ self.settings.callback();
40
+ });
41
+ });
42
+
43
+ this.settings.init = true;
44
+ },
45
+
46
+ off : function () {
47
+ $(this.scope).off('.fndtn.alerts');
48
+ }
49
+ };
50
+ }(Foundation.zj, this, this.document));