lib/resme/templates/resume.md.erb in resme-0.3.2 vs lib/resme/templates/resume.md.erb in resme-0.4.0

- old
+ new

@@ -1,9 +1,9 @@ -# <%= full_name data %>, <%= data.basics.title %> +# <%= full_name data %>, <%= data.basics&.title %> <% -addresses = data.addresses.map { |x| "**#{x.label}**: #{x.street}, #{x.zip_code} #{x.city}" } -presence = data.contacts.map { |x| "**#{x.label}:** #{x.value}" } + data.web_presence.map { |x| "<" + x.value + ">" } +addresses = (data["addresses"] || []).map { |x| "**#{x.label}**: #{x.street}, #{x.zip_code} #{x.city}" } +presence = (data["contacts"] || []).map { |x| "**#{x.label}:** #{x.value}" } + (data["web_presence"] || []).map { |x| "<" + x.value + ">" } -%> <%= presence.map { |x| "* #{x}" }.join("\n") %> <%= addresses.map { |x| "* #{x}" }.join("\n") %> <% if data["summary"] -%>