Create themes and release them as static site.
Your themes live in the themes dir, it will release all pages for your themes into the theme dir.
Add this line to your application's Gemfile:
gem 'roger_themes'And then execute:
$ bundle
- Add tests
- Complete documentation (especially on how themes work by default)
- Add theme selector views for usage in table of content
Include the middleware and processor in the serve and release block:
mockup.serve do |s|
s.use RogerThemes::Middleware
# ...
end
mockup.release do |r|
# ..
r.use :themes
# Finalise your zips for XC
r.finalize RogerThemes::XcFinalizer
- Make XC zip finalizer contents configurable
- Allow config of shard folders in manifest files
- Allow disabling of shared templates in manifest files
- Make sure all templates in a theme folder are processed with the theme env variables set.
- Attention!
env["SITE_THEME"]has been renamed toenv["MAIN_THEME"]. Also it will now return aRogerThemes::Themeobject instead of a string. The old behaviour can be restored by replacingenv["SITE_THEME"]withenv["MAIN_THEME"].name - Add compatibility for subthemes
- Add support for manifest files
- Add datastructures for themes and assets
- Make compatible with Roger 1.7
- Resolve issue around shared paths (#1)
- Fix dir merging when a local folder exists
- Update processor
:shared_foldersnow also takes a hash to enable nested theme folders{ shared_folders: {"images" => "rel/images"} }- Remove
relfrom shared_folders
- Initial release
- Fork it ( https://github.com/digitpaint/roger_themes/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request