Merge pull request #14 from jwhitlock/refactor_convert_resource

Refactor renderers.convert_resource