bridgetown-slim
A Bridgetown plugin to provide support for Slim templates.
Requires Bridgetown 0.16 or greater.
Installation
Run this command to add this plugin to your site's Gemfile:
$ bundle add bridgetown-slim -g bridgetown_plugins
Usage
Simply name your page, layout, or partial with a .slim
extension. The available features will be fairly analogous to the ERB support in Bridgetown, including support for helpers, partials, and rendering Liquid components. You can even embed Markdown and other template languages using standard Slim syntax.
Testing
- Run
bundle exec rspec
to run the test suite - Or run
script/cibuild
to validate with Rubocop and test with rspec together.
Contributing
- Fork it (https://github.com/bridgetownrb/bridgetown-slim/fork)
- Clone the fork using
git clone
to your local development machine. - 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