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.

Allow arguments to `{{mount}}` template keyword and `mount` routing helper

See original GitHub issue

The following was discussed at the Ember Core Team F2F in January:

The {{mount}} template keyword should allow normal handlebars style hash arguments. The router DSL style should also allow some sort of API to supply parameters too.

Still TBD:

  • What API should the mount routing helper support for accepting parameters?
  • Are arguments set directly on the engine instance?
  • How can an engine declare which properties are writeable?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
villandercommented, Oct 31, 2019

this already solved 🎉 can we close this @dgeb @rwjblue ?

0reactions
chadhietalacommented, May 6, 2016

My concern is that you could introduce runtime dependencies making tree shaking and lazy loading more difficult.

export default Ember.Component.extend({
  geo: Ember.inject.service('geolocation')
})
{{mount "blog" (hash geo=geo)}}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Ember.Templates.helpers - 4.8 - Ember API Documentation
The {{mount}} helper lets you embed a routeless engine in a template. Mounting an engine will cause an instance to be booted and...
Read more >
Phoenix.LiveView — phoenix_live_view v0.8.1 - HexDocs
For each LiveView in the root of a template, mount/3 is invoked twice: once to do the initial page load and again to...
Read more >
Rails Routing from the Outside In - Ruby on Rails Guides
How to automatically create paths and URLs using route helpers. Advanced techniques such as creating constraints and mounting Rack endpoints.
Read more >
How to add url parameters to Django template url tag?
First you need to prepare your url to accept the param in the regex: (urls.py) url(r'^panel/person/(?P<person_id>[0-9]+)$', 'apps.panel.views.person_form', ...
Read more >
API — Flask Documentation (2.2.x)
The idea of the first parameter is to give Flask an idea of what belongs to ... The endpoint name for the route...
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