mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-04 11:55:30 -04:00
Add render_xml
helper function
This commit is contained in:
parent
1493c3de90
commit
871a5fe755
@ -127,3 +127,7 @@ def validate_password(password)
|
|||||||
raise "password should contain ASCII characters only"
|
raise "password should contain ASCII characters only"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
macro render_xml(path)
|
||||||
|
send_file env, ECR.render({{path}}).to_slice, "application/xml"
|
||||||
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user