Since we're simplifying the main method, we can use a view file instead of the `call` method. This way we make the code more consistent with the rest of our components, since we always use a separate file. Doing so generates an extra newline at the end of the generated HTML, so we need to change a couple of tests a little bit.
2 lines
55 B
Plaintext
2 lines
55 B
Plaintext
<%= tag.ul(options) { safe_join(list_items, "\n") } %>
|