staticmatic 0.9.5 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. data/History.txt +6 -0
  2. data/Manifest.txt +24 -0
  3. data/README.rdoc +48 -0
  4. data/Rakefile +22 -27
  5. data/bin/staticmatic +0 -0
  6. data/lib/staticmatic.rb +12 -4
  7. data/lib/staticmatic/base.rb +30 -242
  8. data/lib/staticmatic/mixins/build.rb +46 -0
  9. data/lib/staticmatic/mixins/helpers.rb +15 -0
  10. data/lib/staticmatic/mixins/render.rb +125 -0
  11. data/lib/staticmatic/mixins/rescue.rb +12 -0
  12. data/lib/staticmatic/mixins/server.rb +6 -0
  13. data/lib/staticmatic/mixins/setup.rb +20 -0
  14. data/lib/staticmatic/template_error.rb +40 -0
  15. data/lib/staticmatic/templates/{application.haml → default/application.haml} +0 -0
  16. data/lib/staticmatic/templates/{application.sass → default/application.sass} +0 -0
  17. data/lib/staticmatic/templates/{index.haml → default/index.haml} +0 -0
  18. data/lib/staticmatic/templates/rescues/default.haml +7 -0
  19. data/lib/staticmatic/templates/rescues/template.haml +18 -0
  20. data/test/test_helper.rb +20 -48
  21. metadata +55 -124
  22. data/CHANGELOG +0 -57
  23. data/LICENSE +0 -21
  24. data/README +0 -56
  25. data/example/site/contact.html +0 -17
  26. data/example/site/index.html +0 -16
  27. data/example/site/javascripts/application.css +0 -2
  28. data/example/src/layouts/application.haml +0 -11
  29. data/example/src/pages/contact.haml +0 -3
  30. data/example/src/pages/index.haml +0 -3
  31. data/example/src/pages/test test/blah.haml +0 -1
  32. data/example/src/stylesheets/application.sass +0 -4
  33. data/lib/staticmatic/version.rb +0 -34
  34. data/test/base_test.rb +0 -60
  35. data/test/helpers_test.rb +0 -296
  36. data/test/sandbox/test_site/configuration.rb +0 -0
  37. data/test/sandbox/test_site/site/index.html +0 -10
  38. data/test/sandbox/test_site/site/stylesheets/application.css +0 -2
  39. data/test/sandbox/test_site/src/helpers/application_helper.rb +0 -5
  40. data/test/sandbox/test_site/src/layouts/alternate_layout.haml +0 -3
  41. data/test/sandbox/test_site/src/layouts/application.haml +0 -7
  42. data/test/sandbox/test_site/src/layouts/projects.haml +0 -1
  43. data/test/sandbox/test_site/src/pages/index.haml +0 -5
  44. data/test/sandbox/test_site/src/pages/layout_test.haml +0 -2
  45. data/test/sandbox/test_site/src/partials/menu.haml +0 -1
  46. data/test/sandbox/test_site/src/stylesheets/application.sass +0 -2
  47. data/test/server_test.rb +0 -12
  48. data/test/test_helper_test.rb +0 -49
  49. data/test/version_test.rb +0 -28
  50. data/website/site/download.html +0 -84
  51. data/website/site/faq.html +0 -101
  52. data/website/site/helper_central/index.html +0 -144
  53. data/website/site/how_to_use.html +0 -307
  54. data/website/site/images/bycurve21.gif +0 -0
  55. data/website/site/images/curve21.jpg +0 -0
  56. data/website/site/images/homepage-build.jpg +0 -0
  57. data/website/site/images/homepage-previewing.jpg +0 -0
  58. data/website/site/images/homepage-templating.jpg +0 -0
  59. data/website/site/index.html +0 -98
  60. data/website/site/releases/0_8_10.html +0 -106
  61. data/website/site/releases/0_8_4.html +0 -101
  62. data/website/site/releases/0_8_8.html +0 -96
  63. data/website/site/releases/0_9_0.html +0 -124
  64. data/website/site/stylesheets/application.css +0 -287
  65. data/website/src/helpers/application_helper.rb +0 -5
  66. data/website/src/layouts/application.haml +0 -43
  67. data/website/src/layouts/test.haml +0 -4
  68. data/website/src/pages/_qa.haml +0 -2
  69. data/website/src/pages/download.haml +0 -15
  70. data/website/src/pages/faq.haml +0 -8
  71. data/website/src/pages/helper_central/_helper.haml +0 -7
  72. data/website/src/pages/helper_central/index.haml +0 -21
  73. data/website/src/pages/how_to_use.haml +0 -270
  74. data/website/src/pages/index.haml +0 -27
  75. data/website/src/pages/releases/0_8_10.haml +0 -22
  76. data/website/src/pages/releases/0_8_4.haml +0 -25
  77. data/website/src/pages/releases/0_8_8.haml +0 -35
  78. data/website/src/pages/releases/0_9_0.haml +0 -34
  79. data/website/src/partials/news.haml +0 -10
@@ -1,35 +0,0 @@
1
- %h1 StaticMatic 0.8.8
2
-
3
- %h2 Helpers
4
-
5
- %p Thanks to Craig Webster, we now have Rails-style helpers.
6
-
7
- src/application_helper.rb:
8
-
9
- :preserve
10
- <pre class="code">
11
- module ApplicationHelper
12
- def greet(name)
13
- "Hello, #{name}!"
14
- end
15
- end
16
- </pre>
17
-
18
- %h2 Configuration
19
-
20
- %p We also now have configuration. It's only basic right now but expect this to expand.
21
-
22
- src/configuration.rb:
23
-
24
- .code
25
- configuration.preview_server_port = 3000
26
- configuration.use_relative_paths_for_links = false
27
- configuration.use_relative_paths_for_images = false
28
- configuration.use_relative_paths_for_stylesheets = false
29
- configuration.use_relative_paths_for_javascripts = false
30
-
31
- %p The configuration file is also loaded before StaticMatic starts so it can be used to monkey-patch to demonstrate new features.
32
-
33
- %p
34
- See what changed in
35
- = link '0.8.4', '/releases/0_8_4.html'
@@ -1,34 +0,0 @@
1
- %h1 StaticMatic 0.9.0
2
-
3
- %p
4
- The biggest change is that
5
- %span.highlight all the "local" links generated (pages/stylesheets/images) are relative
6
- now that we know the current page. So the
7
- use_relative_path_for_* configuration settings were removed.
8
- %span.highlight This will cause your configuration.rb to blow up unless you remove them.
9
-
10
- %h2 What's New
11
-
12
- %ul
13
- %li added StaticMatic::VERSION.requirements_met?
14
- %li added LICENSE and CHANGELOG files
15
- %li can now specify relative paths when only specifying a title - link("../other/How to download")
16
- %li add src_dir/stylesheets directory to sass load path so you can use @import styles.sass
17
- %li added sass_options hash to configuration so you can configure sass (ie: :style => :compact)
18
- %li added configuration.use_extensions_for_page_links (defaults to true) when false will strip index.html and .html off the end of links for pretty urls
19
- %li made all "local" links (pages/stylesheets/images) relative to the current page and removed use_relative_path_for_* configuration settings
20
- %li stylesheets helper can now take a list of stylesheets to include and the order as well as options (ie: :media => :print)
21
- %li added clean and clobber tasks to Rakefile
22
- %li added StaticMatic::VERSION in version.rb
23
- %li added package task to Rakefile and made it the default
24
-
25
- %h2 What's Fixed
26
-
27
- %ul
28
- %li clear all instance variables in @scope except @staticmatic
29
- %li no longer add \n after the tag in the tag helper
30
- %li mailto: links were getting a / inserted in front of the mailto:
31
-
32
- %p
33
- See what changed in
34
- = link('0.8.10', '/releases/0_8_10.html')
@@ -1,10 +0,0 @@
1
- .heading News
2
- .title 0.9.0 Released!
3
- %p Complete with:
4
-
5
- %ul
6
- %li &quot;Local&quot; generated links are relative - no more use_relative_path_for_* configuration settings
7
- %li Ability to strip .html and index.html from link tag urls
8
- %li configuration.sass_options
9
-
10
- = link "And More!", "/releases/0_9_0.html"