module HealthDataStandards module Export module Hdata class Metadata def initialize template_helper = TemplateHelper.new('hdata') @rendering_context = RenderingContext.new @rendering_context.template_helper = template_helper end def export(entry, metadata, include_namespace=false) @rendering_context.render(:template => 'metadata', :locals => {entry: entry, metadata: metadata, namespace: include_namespace}) end end end end end