wip - use erb instead of nokogiri, adding templates support