Add render_xml helper function

This commit is contained in:
Alex Ling 2020-06-05 14:20:26 +00:00
parent 1493c3de90
commit 871a5fe755

View File

@ -127,3 +127,7 @@ def validate_password(password)
raise "password should contain ASCII characters only"
end
end
macro render_xml(path)
send_file env, ECR.render({{path}}).to_slice, "application/xml"
end