mirror of
https://github.com/hkalexling/Mango.git
synced 2026-03-20 00:00:48 -04:00
Add render_xml helper function
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user