Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timriley/rails_slim_temple_nested_blocks_demo
r
https://github.com/timriley/rails_slim_temple_nested_blocks_demo
Last synced: about 1 month ago
JSON representation
r
- Host: GitHub
- URL: https://github.com/timriley/rails_slim_temple_nested_blocks_demo
- Owner: timriley
- Created: 2023-04-13T11:08:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-13T11:15:43.000Z (over 1 year ago)
- Last Synced: 2024-10-28T10:25:55.939Z (about 2 months ago)
- Language: Ruby
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rails/Slim/Temple nested captures demo
This Rails repository replicates [this bug](https://github.com/slim-template/slim/issues/898) between Rails/Slim and Temple and then demonstrates that [this change to Temple](https://github.com/judofyr/temple/pull/112) will not reintroduce it.
## Setup
First visit the [`Gemfile`](Gemfile) and uncomment the gem versions under this line:
```ruby
# 🚫 Using releases or git refs as of 21 December 2022 replicates the bug:
```Then `bundle` and `rails server` and then `curl -s http://localhost:3000/posts| grep microcopy`. This will replicate the bug:
```html
awesome microcopy
```Next, revisit the Gemfile and uncomment the gem versions under this line:
```ruby
# ✅ Using the latest releases shows the bug is no longer present:
````bundle`, `rails server`, `curl -s http://localhost:3000/posts| grep microcopy`, and note that the bug is no longer present:
```html
awesome microcopy
```Finally, return to the Gemfile and uncomment the gem versions under this line:
```ruby
# ✅ Using latest slim plus a branch of temple with https://github.com/judofyr/temple/pull/112
# reintroduced does _not_ reintroduce the bug:
````bundle`, `rails server`, `curl -s http://localhost:3000/posts| grep microcopy`, and note that the bug is still absent:
```html
awesome microcopy
```