Added basic support for string rendering

@lancejpollard I can see that we're going to have some duplicated logic with the attribute rendering. Example: we will have some logic for rendering the class and style attributes, or the path, or the key. So we'll need to consolidate it at some point.