Request

URL
https://haml2erb.org/api/convert
Method
POST
JSON body
{ haml: "%some_haml" }

Success response

HTTP Status
200
JSON body
{ success: true, erb: "<!DOCTYPE html>" }

Error response

HTTP Status
422
JSON body
{ success: false, error: "Invalid tag: "%".\nAt (haml):1" }