slim-template / slim

Slim is a template language whose goal is to reduce the syntax to the essential parts without becoming cryptic.
https://slim-template.github.io
MIT License
5.3k stars 501 forks source link

Add regression test for capture handling in Rails #917

Closed timriley closed 1 year ago

timriley commented 1 year ago

As discussed with @minad in https://github.com/judofyr/temple/pull/112#issuecomment-1506839532, here is a simple regression test intended to catch any issues around the specific intersection of Temple's capture handling and Slim's Rails-specific Temple generator.

Locally, I've tested this against:

And the test passes in both cases.

The goal of adding this test now is to build sufficient confidence before introducing this change to propagate options to nested capture_generators in Temple (https://github.com/judofyr/temple/pull/144).

@minad — this is my first contribution to Slim. Please let me know if you'd like to see anything different here.