News
0.9.0 Released!

Complete with:

  • "Local" generated links are relative - no more use_relative_path_for_* configuration settings
  • Ability to strip .html and index.html from link tag urls
  • configuration.sass_options
And More!

StaticMatic 0.8.8

Helpers

Thanks to Craig Webster, we now have Rails-style helpers.

src/application_helper.rb:
module ApplicationHelper
  def greet(name)
     "Hello, #{name}!"
  end
end

Configuration

We also now have configuration. It's only basic right now but expect this to expand.

src/configuration.rb:
configuration.preview_server_port = 3000 configuration.use_relative_paths_for_links = false configuration.use_relative_paths_for_images = false configuration.use_relative_paths_for_stylesheets = false configuration.use_relative_paths_for_javascripts = false

The configuration file is also loaded before StaticMatic starts so it can be used to monkey-patch to demonstrate new features.

See what changed in 0.8.4