Drab: remote controlled frontend framework for Phoenix

Whoo looks awesome! :slight_smile:

Hmm, there are cases, but maybe signifying it via a delimiter of some form? Like Polymer does blah="{{variable}}" to set the property on the element named blah to the contents of variable, and it uses blah$="{{variable}}" to set the *attribute*. A difference is if it is explicitly falsethen it removes the attribute entirely, if it is non-false then it sets the attribute to that value with the special case of if that value istrue(not the string"true"but the booleantruethen it just sets it as a true attribute (think therequired` attribute on input boxes). You have to have some way to differentiate between property and attribute setting as they can do very very different things depending on the DOM node being updated.

1 Like