statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
30 stars 1 forks source link

Extend Ray modifier for use of the color helper function #1083

Closed joschuba closed 7 months ago

joschuba commented 7 months ago

Would be really nice to be able to select the color in Ray when using the Ray core modifier.

Plain PHP:

ray('Hello world')->color('red');

Usage of the modifier like this:

{{ hello_world | ray('red');

If you want to have it in core, would be happy to PR it in, should be a one liner. Just let me know.

jackmcdade commented 7 months ago

PR away!