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

Calling helper that takes an argument as attribute value #9

Closed
vojto opened this issue Mar 17, 2014 · 4 comments
Closed

Calling helper that takes an argument as attribute value #9

vojto opened this issue Mar 17, 2014 · 4 comments

Comments

@vojto
Copy link

vojto commented Mar 17, 2014

For example, with Iron Router:

a(href=pathFor('foo')) Foo

That doesn't work.

@mquandalle
Copy link
Owner

As a temporary solution you can now use:

a(href="{{pathFor 'foo'}}") Foo

The href=pathFor('foo') syntax will be supported with the #1 feature.

@mquandalle mquandalle added this to the v0.3 milestone Mar 30, 2014
@mquandalle
Copy link
Owner

I'm closing this in favor of #1.

@seeekr
Copy link

seeekr commented Apr 4, 2015

Just a heads up. You should totally include this caveat in the docs in the main Readme so people don't have to google the solutions since this is something that people need to do reasonably often!

By the way, what's the status of this project? I might be interested in helping out in getting meteor-jade being as fully featured as the default Spacebars is, but currently there's a bunch of minor issues that would need to be worked out. Like this one, as well as a few other things that I can't recall off the top of my head that came up as I was using meteor-jade for the first time on a project.

@onstottj
Copy link

+1 for documenting which jade features aren't supported in meteor-jade. I've spent several hours wondering why things like class={class1:ifSomethingIsTrue, class2:ifSomethingElseIsTrue} doesn't work. Thanks for the great implementation though.

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

No branches or pull requests

4 participants