staticmatic 0.9.5 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -0
- data/Manifest.txt +24 -0
- data/README.rdoc +48 -0
- data/Rakefile +22 -27
- data/bin/staticmatic +0 -0
- data/lib/staticmatic.rb +12 -4
- data/lib/staticmatic/base.rb +30 -242
- data/lib/staticmatic/mixins/build.rb +46 -0
- data/lib/staticmatic/mixins/helpers.rb +15 -0
- data/lib/staticmatic/mixins/render.rb +125 -0
- data/lib/staticmatic/mixins/rescue.rb +12 -0
- data/lib/staticmatic/mixins/server.rb +6 -0
- data/lib/staticmatic/mixins/setup.rb +20 -0
- data/lib/staticmatic/template_error.rb +40 -0
- data/lib/staticmatic/templates/{application.haml → default/application.haml} +0 -0
- data/lib/staticmatic/templates/{application.sass → default/application.sass} +0 -0
- data/lib/staticmatic/templates/{index.haml → default/index.haml} +0 -0
- data/lib/staticmatic/templates/rescues/default.haml +7 -0
- data/lib/staticmatic/templates/rescues/template.haml +18 -0
- data/test/test_helper.rb +20 -48
- metadata +55 -124
- data/CHANGELOG +0 -57
- data/LICENSE +0 -21
- data/README +0 -56
- data/example/site/contact.html +0 -17
- data/example/site/index.html +0 -16
- data/example/site/javascripts/application.css +0 -2
- data/example/src/layouts/application.haml +0 -11
- data/example/src/pages/contact.haml +0 -3
- data/example/src/pages/index.haml +0 -3
- data/example/src/pages/test test/blah.haml +0 -1
- data/example/src/stylesheets/application.sass +0 -4
- data/lib/staticmatic/version.rb +0 -34
- data/test/base_test.rb +0 -60
- data/test/helpers_test.rb +0 -296
- data/test/sandbox/test_site/configuration.rb +0 -0
- data/test/sandbox/test_site/site/index.html +0 -10
- data/test/sandbox/test_site/site/stylesheets/application.css +0 -2
- data/test/sandbox/test_site/src/helpers/application_helper.rb +0 -5
- data/test/sandbox/test_site/src/layouts/alternate_layout.haml +0 -3
- data/test/sandbox/test_site/src/layouts/application.haml +0 -7
- data/test/sandbox/test_site/src/layouts/projects.haml +0 -1
- data/test/sandbox/test_site/src/pages/index.haml +0 -5
- data/test/sandbox/test_site/src/pages/layout_test.haml +0 -2
- data/test/sandbox/test_site/src/partials/menu.haml +0 -1
- data/test/sandbox/test_site/src/stylesheets/application.sass +0 -2
- data/test/server_test.rb +0 -12
- data/test/test_helper_test.rb +0 -49
- data/test/version_test.rb +0 -28
- data/website/site/download.html +0 -84
- data/website/site/faq.html +0 -101
- data/website/site/helper_central/index.html +0 -144
- data/website/site/how_to_use.html +0 -307
- data/website/site/images/bycurve21.gif +0 -0
- data/website/site/images/curve21.jpg +0 -0
- data/website/site/images/homepage-build.jpg +0 -0
- data/website/site/images/homepage-previewing.jpg +0 -0
- data/website/site/images/homepage-templating.jpg +0 -0
- data/website/site/index.html +0 -98
- data/website/site/releases/0_8_10.html +0 -106
- data/website/site/releases/0_8_4.html +0 -101
- data/website/site/releases/0_8_8.html +0 -96
- data/website/site/releases/0_9_0.html +0 -124
- data/website/site/stylesheets/application.css +0 -287
- data/website/src/helpers/application_helper.rb +0 -5
- data/website/src/layouts/application.haml +0 -43
- data/website/src/layouts/test.haml +0 -4
- data/website/src/pages/_qa.haml +0 -2
- data/website/src/pages/download.haml +0 -15
- data/website/src/pages/faq.haml +0 -8
- data/website/src/pages/helper_central/_helper.haml +0 -7
- data/website/src/pages/helper_central/index.haml +0 -21
- data/website/src/pages/how_to_use.haml +0 -270
- data/website/src/pages/index.haml +0 -27
- data/website/src/pages/releases/0_8_10.haml +0 -22
- data/website/src/pages/releases/0_8_4.haml +0 -25
- data/website/src/pages/releases/0_8_8.haml +0 -35
- data/website/src/pages/releases/0_9_0.haml +0 -34
- 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 "Local" 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"
|