Closed pixelass closed 9 years ago
No. This is not possible in Blaze. It is also probably too much logic for Handlebars pure separation of concerns.
You can do:
{{>myComponnent option=option}}
class myComponent extends BlazeComponent
option: ->
"foo:#{if @data().foo then 'yes' else 'no'}"
Yea I was guessing that.. I was just wondering why I could do some string interpolation in Jade but not in spacebars since the Jade implementation of meteor only uses Jades lexer and syntax..
I will just have the people build this logic into their templates.
Thx for the answer.
Issue can be closed.
Is it possible to do something like this?
or
I am writing my components in Jade so there I can at least use this
but obviously I don't want them to be tied to any syntax or transpiler logic
I didn't find any documentation so maybe you can help me find an answer to this.