Use nokogiri to build nodes instead of templates.