Closed crapthings closed 8 years ago
app
h1(onclick={handleClick}) jade { value }
script.
console.log 2
@handleClick = ->
alert 1
this is my tag code, when i click h1, i get
(index):12 Uncaught SyntaxError: Unexpected identifier
it works
app
h1(onclick='{handleClick}') jade { value }
style
body
color red
script.
@value = 1
@handleClick = ->
alert 1
config template is using jade
is that mean write jade and coffeescript in template.tag ?