You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if there is a supported and therefore easy way to extend HAML. Ignoring that something like the SLIM approach seems fine:
.tweet@@tweet
@name User's name
On the other hand, skipping the data in the hash notation looks more descriptive:
.tweet{ scope: :tweet }
%div{ prop: :name }
However, hijacking the attribute definition syntax seems odd. HAML also has the object reference syntax, perhaps this could be extended to accept some kind of hash notiation:
Cool, I'd like to research what's possible. Any of the options you posted would work pretty well from a user's perspective. I am not expert on HAML either; used it briefly before moving onto SLIM. If you beat me to it, let me know what you find out!
Do you plan to add shortcuts for pakyow-data-attributes like you did for pakyow-slim? HAML-like
seems a little inconvenient.
The text was updated successfully, but these errors were encountered: