Coder Social home page Coder Social logo

Comments (5)

alanning avatar alanning commented on May 19, 2024

Got a basic Iron-Router example going but it has some rough edges that I don't know how to fix.

https://github.com/alanning/meteor-roles/tree/iron-router

A lot of unknowns:

  • how to set a layout in a before filter
  • how to compose multiple filters
  • why does notFoundTemplate in Router.configure not handle 404s
  • why is Loading template continually displayed after login

Feel free to jump in and play around. Be sure to submit pull requests when you figure something out!

from meteor-roles.

alanning avatar alanning commented on May 19, 2024

Well fixed the Loading template issue at least by using this.render('foo') rather than this.template = foo.

from meteor-roles.

alanning avatar alanning commented on May 19, 2024

merged into master branch. still has rough edges but works.

from meteor-roles.

tony-kerz avatar tony-kerz commented on May 19, 2024

hey adrian,

thanks for the iron-router example, i'm trying to work thru that now.

with the disclosure that i'm not a JS expert, one thing that i wanted to ask about was this line:

https://github.com/alanning/meteor-roles/blob/master/examples/iron-router/client/routing.js#L85

the iron-router doc shows only a layoutTemplate option vs a layout option, should this be layoutTemplate here?

regards,
tony

from meteor-roles.

alanning avatar alanning commented on May 19, 2024

Hi Tony,

Thanks for the email. Actually I think that is a change to the iron-router
api so this example probably needs to be updated. I wrote it a while ago
and iron-router has evolved quite a bit since then. (A good thing.)
That's actually why I have't publicized the example in the readme yet.

If you have time to get the example working with the latest iron-router, I
would love a pull request. :-)

Cheers,
Adrian

On Thu, Dec 19, 2013 at 11:19 AM, tony kerz [email protected]:

hey adrian,

thanks for the iron-router example, i'm trying to work thru that now.

with the disclosure that i'm not a JS expert, one thing that i wanted to
ask about was this line:

https://github.com/alanning/meteor-roles/blob/master/examples/iron-router/client/routing.js#L85

the iron-router doc shows only a layoutTemplate option vs a layoutoption, should this be
layoutTemplate here?

regards,
tony


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-30942000
.

from meteor-roles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.