Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Spacebars helpers in multiple rows #21

Closed
maxpain opened this issue Apr 4, 2014 · 6 comments
Closed

Spacebars helpers in multiple rows #21

maxpain opened this issue Apr 4, 2014 · 6 comments
Labels

Comments

@maxpain
Copy link

maxpain commented Apr 4, 2014

It causes an error.

p
    {{#with getSomeData data}}
        foo: {{foo}}
        bar: {{bar}}
    {{/with}}
@mquandalle
Copy link
Owner

It should be:

p
  with(getSomeData data)
    foo #{foo}
    bar #{bar}

@maxpain
Copy link
Author

maxpain commented Apr 4, 2014

    {{if matchStatus currentUser.profile.name}}
        a.btn.btn-info(href='/matches/#{myMatchId}') My match
    {{else}}
        a.btn.btn-link(href='#matchCreate' data-toggle='tab') Create match
    {{/if}}

Any suggestions?

@mquandalle
Copy link
Owner

if(matchStatus currentUser.profile.name)
  a.btn.btn-info(href='/matches/#{myMatchId}') My match
else
  a.btn.btn-link(href='#matchCreate' data-toggle='tab') Create match

See the doc: https://github.com/mquandalle/meteor-jade#components

@maxpain
Copy link
Author

maxpain commented Apr 4, 2014

matchStatus currentUser.profile.name

this helper does not working under meteor-jade

@mquandalle
Copy link
Owner

Do you get an error on the server?

@maxpain
Copy link
Author

maxpain commented Apr 4, 2014

Sorry, the problem was in another.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants