Sha256: 3ec7dd575168df5e42da4bd53acf68503fa86efcce172ad8733ee203b14ce421
Contents?: true
Size: 794 Bytes
Versions: 3
Compression:
Stored size: 794 Bytes
Contents
%h1 StaticMatic 0.8.8 %h2 Helpers %p Thanks to Craig Webster, we now have Rails-style helpers. src/application_helper.rb: :preserve <pre class="code"> module ApplicationHelper def greet(name) "Hello, #{name}!" end end </pre> %h2 Configuration %p We also now have configuration. It's only basic right now but expect this to expand. src/configuration.rb: .code 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 %p The configuration file is also loaded before StaticMatic starts so it can be used to monkey-patch to demonstrate new features.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
staticmatic-0.8.9 | website/src/pages/releases/0_8_8.haml |
staticmatic-0.8.10 | website/src/pages/releases/0_8_8.haml |
staticmatic-0.8.8 | website/src/pages/releases/0_8_8.haml |