swift-html icon indicating copy to clipboard operation
swift-html copied to clipboard

Make the Tag render function public

Open robertschmid-ast opened this issue 3 years ago • 2 comments

I have a case where I need access to render(render: Tag, level: Int = 0) -> String

robertschmid-ast avatar Mar 30 '22 18:03 robertschmid-ast

Can I ask you why do you need access to this function? What's your use case?

tib avatar Mar 31 '22 12:03 tib

I'm using HTML to assist in visualizing some large datasets. However, it turns out the datasets are so large rendering every row using the Tags is a bottleneck. So I use the tags to render a couple of header rows, add the rest of the rows as strings then add that String to the table using setContents.

robertschmid-ast avatar Mar 31 '22 14:03 robertschmid-ast