Skip to content

feat: Add a method to render a component to string #561

@jaredcwhite

Description

@jaredcwhite

Summary

The ability to render a component in any codepath, not just in views.

Something like:

output = Shared::Navbar.new(resource:).render_to_string
puts output

Unresolved Questions

How best to "boot up" a skeleton view context from which a component render can occur…any problematic edge cases? Performance issues? * Note: this is already done from dynamic Roda routes…just need to extract/generalize maybe…

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions