New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement `ampersand-app` for ampersand CLI #91

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
4 participants
@fyockm
Member

fyockm commented Jan 27, 2015

as mentioned in AmpersandJS/ampersand-app#4

// all the <a> tags in the app.
// it expects a url without a leading slash.
// for example: "costello/settings".
navigate: function(page) {

This comment has been minimized.

@mikehedman

mikehedman Jan 27, 2015

Contributor

I'd kind of hoped that this method would get "promoted" into ampersand-app. It seems like pretty much every ampersand application would need it, so it's always seemed wrong for it to have to be copy/pasted into the main app file. Now that there's a parent, it seems like a great place to put it.

But then again, it would trigger promotion of the router. But again, if all apps need a router, navigate, and domReady function... You know, let's turn Ampersand into a "frameworky" framework :(

@mikehedman

mikehedman Jan 27, 2015

Contributor

I'd kind of hoped that this method would get "promoted" into ampersand-app. It seems like pretty much every ampersand application would need it, so it's always seemed wrong for it to have to be copy/pasted into the main app file. Now that there's a parent, it seems like a great place to put it.

But then again, it would trigger promotion of the router. But again, if all apps need a router, navigate, and domReady function... You know, let's turn Ampersand into a "frameworky" framework :(

This comment has been minimized.

@HenrikJoreteg

HenrikJoreteg Jan 27, 2015

Member

@mikehedman I think there's some more we can do here while still maintaining flexibility.

I'm going to tweak some of this a bit and also go add some tests and such. Thanks for doing the initial conversion @fyockm. More thoughts incoming...

@HenrikJoreteg

HenrikJoreteg Jan 27, 2015

Member

@mikehedman I think there's some more we can do here while still maintaining flexibility.

I'm going to tweak some of this a bit and also go add some tests and such. Thanks for doing the initial conversion @fyockm. More thoughts incoming...

This comment has been minimized.

@fyockm

fyockm Jan 27, 2015

Member

@mikehedman you make some very good points on both sides. I personally don't think ampersand-app (at least in its current incarnation) is the correct place for this abstraction, but perhaps there is place for this "boilerplate" type code?

I'll be interested to see what @HenrikJoreteg and crew have to say on the topic.

@fyockm

fyockm Jan 27, 2015

Member

@mikehedman you make some very good points on both sides. I personally don't think ampersand-app (at least in its current incarnation) is the correct place for this abstraction, but perhaps there is place for this "boilerplate" type code?

I'll be interested to see what @HenrikJoreteg and crew have to say on the topic.

@HenrikJoreteg

This comment has been minimized.

Show comment
Hide comment
@HenrikJoreteg

HenrikJoreteg Feb 14, 2015

Member

Wanted to iterate on this a bit in a single merged branch, as created in #96 which includes all these commits. Thanks @fyockm!

Member

HenrikJoreteg commented Feb 14, 2015

Wanted to iterate on this a bit in a single merged branch, as created in #96 which includes all these commits. Thanks @fyockm!

@HenrikJoreteg

This comment has been minimized.

Show comment
Hide comment
@HenrikJoreteg

HenrikJoreteg Feb 14, 2015

Member

Let's continue this discussion in #96. I just made a few tweaks that I was envisioning there, @fyockm and @mikehedman.

Member

HenrikJoreteg commented Feb 14, 2015

Let's continue this discussion in #96. I just made a few tweaks that I was envisioning there, @fyockm and @mikehedman.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment