Jadelet Example Garden

Shorthand Attributes

In Jadelet you can use @name as a shorthand for name=@name. To bind a click event to the click handler in your model is as easy as button(@click)!

button(@click)= @text
buttonElement = Template
  text: "Hello"
  click: ->
    alert 'heyy'