In Shark your web objects are renderer using the Renderer class. While this mostly happens behind the scenes, you can use the Renderer stand-alone as well. You can even use it without Django, although there are some objects that have Django dependencies at the moment.
Here’s an example of using the Renderer
content = [ Heading('Hello World'), Paragraph("This is just a Hello World!"), Graph.example() ] renderer = Renderer() renderer.render('', content) print(renderer.html)