padolsey / SIML

Simplified Markup
MIT License
97 stars 5 forks source link

attribute with quotes not working? #15

Closed lucax88x closed 8 years ago

lucax88x commented 8 years ago

Hello mate,

great work, anyway, I have a common case which is weird is not working, I'm probably doing something wrong...

md-button
                    @click(authenticate('facebook'))
                    i.fa.fa-facebook
                md-button[ng-click=authenticate('google')] 
                    i.fa.fa-google-plus
<md-button ng-click="authenticate(%%__STRING_TOKEN___%%4)">
          <i class="fa fa-facebook"></i>
        </md-button>
        <md-button ng-click="authenticate(%%__STRING_TOKEN___%%5)">
          <i class="fa fa-google-plus"></i>
        </md-button>
Anaphase commented 8 years ago

Huh, I thought I had also created an issue on this a while back too - but I guess not. Yeah, SIML has a weird bug with quotes in attributes/directives. You have to do it like this:

md-button
  @click("authenticate('facebook')")
  i.fa.fa-facebook

md-button[ng-click="authenticate('google')"]
  i.fa.fa-google-plus
lucax88x commented 8 years ago

thanks anaphase! ;)