No release in over 3 years
Low commit activity in last 3 years
Backport support for Slim 4+ version for ERB support in Slim views.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0
>= 4.0.1
 Project Readme

SlimERBBackport

If you are using Slim 4+ version and embedding ERB inside probably you have noticed that it doen'ts work.

This gem backports support for newer versions of Slim support for ERB.

Usage

Just continue using slim as before. You don't need to convert ERB into slim or move to partials.

h1 Index

= render 'p1'
= render 'p2'

erb:
  <h2>ERB in index.html.erb</h2>
  <script>
    console.log("hello world");
  </script>

Installation

Add this line to your application's Gemfile:

gem 'slim_erb_backport'

And then execute:

$ bundle

Contributing

You are welcome to contribute.

Big thank you to author of SLIM that he originally added support of ERB inside slim views.

License

The gem is available as open source under the terms of the MIT License.