question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Maybe compatibility issue

See original GitHub issue

Hello guys,

today I tried this package, due to dynamic imports in routes. But after some setup, some routes are working, some not. Working routes are still throwing There is no route for the path: error, but everything else is okay, rendered and stuff. Non-working routes are those which use kadirahq:blaze-layout dynamic template. Is there any possibility to get this working or use yield included in this package in similiar way (like multiple yields on template and naming them)?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dr-dimitrucommented, Jun 5, 2017

Hello @Kenny11CZ ,

Everything should work as before. Make sure defined routes is statically imported in the app bundle.

Speaking of the difference blaze-layout and built in .render(). Yes, yield is required for .render(), but can only one per template, but you can use it as before with blaze-layout if you need dynamic regions:

<!-- /imports/client/layout.html -->
<template name="layout">
  {{> yield}}
</template>
<!-- /imports/client/main.html -->
<template name="main">
  <aside>
    {{> Template.dynamic template=sidebar}}
  </aside>
  <main>
    {{> Template.dynamic template=content}}
  </main>
  <footer>
    {{> Template.dynamic template=footer}}
  </footer>
</template>
// /client/main.js
import '/imports/lib/routes.js';
import '/imports/client/layout.html';
import '/imports/client/main.html';
// /imports/client/index.js
import { Template } from 'meteor/templating';
import '/imports/client/sidebarTemplate.html';
import '/imports/client/contentTemplate.html';
import '/imports/client/footerTemplate.html';

Template.index.helpers({/*...*/});
// /imports/lib/routes.js
import { FlowRouter }  from 'meteor/ostrio:flow-router-extra';

FlowRouter.route('/', {
  name: 'index',
  waitOn() {
    return import('/imports/client/index.js');
  },
  action() {
    this.render('layout', 'main', {
      sidebar: 'sidebarTemplate',
      content: 'contentTemplate',
      footer: 'footerTemplate',
    });
  }
});

To me it’s much more complex than have a few different layouts with all kind of footers and sidebars you need. Of course selection between those two concepts should be made with better fit for project needs in mind.

0reactions
dr-dimitrucommented, Jun 9, 2017

Please, support this project by:

Read more comments on GitHub >

github_iconTop Results From Across the Web

15 Signs of Incompatibility in Relationship - Marriage.com
Compatible partners get along and can envision the future together. Their chemistry is marked by how easily their interests, habits, and hobbies ...
Read more >
6 Red Flags There's No Compatibility In A Couple ... - Elite Daily
If you want to spend less time together than they do, it could mean there's a larger issue at play. Like I said,...
Read more >
8 Obvious signs you are not compatible with your partner
Compatibility is not only about having the same interests. It is about sharing the same values, having compatible libidos, knowing how to work ......
Read more >
Signs you are not compatible with your partner - Times of India
Maybe, it's best to accept the fact that you both are not meant to be together and it is the time to move...
Read more >
Compatibility and Chemistry in Relationships - Mark Manson
A youth minister and a drug dealer are probably incompatible and I doubt many end up dating each other. If I value women...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found