Request
- URL
-
https://haml2erb.org/api/convert
- Method
POST
- Parameters
-
haml
- Haml to be convert
converter
-
herbalizer
orhaml_gem
(Only HTML output using--suppress-eval
option )
Success response example
- HTTP Status
200
- JSON body
-
{ success: true, erb: "<!DOCTYPE html>" }
Error response example
- HTTP Status
422
- JSON body
-
{ success: false, error: "Invalid tag: "%".\nAt (haml):1" }