Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use yield_content in whitespace #611

Merged
merged 1 commit into from
Dec 9, 2023
Merged

Commits on Dec 8, 2023

  1. Use yield_content in whitespace

    This will allow the block form of `whitespace` to work the same way you
    would work with an element method. Your block can return a string, or
    any object that can be formatted by `format_object` if it contains no
    other element methods.
    
    ```rb
    span { "9" }
    whitespace { "out of" }
    span { "10" }
    ```
    willcosgrove committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    1455b2c View commit details
    Browse the repository at this point in the history