In general, HAML is structured in such a way as to make it easy and somewhat compulsory for the author to write βbeautifulβ code from the very beginning. Most of what the improver does is makes non-synthetically relevant changes to spaces in languages ββ/ formats where spaces are completely irrelevant (possibly with the exception of line breaks). This is an obstacle to decorating HAML because spaces are syntactically relevant. HAML also eliminates the need for braces and the like, so they also do not need to be cleaned.
What exactly do you expect from a HAML designer? Can you give an example of a valid HAML file that you would enter in the decorator, and the result that you want to get from the decorator?
source
share