Opal-Slim is a set of Opal bindings for the Slim templating language, allowing you to use Slim templates in your Opal app. It was written to work with the Clearwater framework, but it should work just fine with any Opal app.
Add this line to your application's Gemfile:
And then execute:
Opal-Slim stores your templates in the global
Template object, so you simply need to call
context is the object that will receive the Ruby method calls.
- Fork it ( https://github.com/[my-github-username]/opal-slim/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