-
Notifications
You must be signed in to change notification settings - Fork 13
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
I would really love to see this integrated with Blaze Components #20
Comments
Yeah, I have totally been thinking the same. I'm reworking this a bit for SpaceDrop, which makes it possible to separate components and templates a little better, its all still in spacedrop core, but will move it out as soon as I've added in all functionality its still missing. |
So some people were also asking for Blaze Components that it would be great to have Blaze templates, code, and style all in one file. Do you think that would be possible to achieve? |
Yeah, that should be easy! 👍 |
Ooohhh. How!!! Teach/show me how! :-) |
hey, why don't we design a Blaze 2.0 API that is a superbreed of react and blaze? with superclear taxonomy. |
I prefer that parts are opt-in. So we have very basic core, and then we can build more packages on top which add extra stuff. And frankly, I do not know what more I would add to Blaze Components. :-) Read maybe this discussion: peerlibrary/meteor-blaze-components#79 (comment) |
Though I'd move in this into a constructor:
so it becomes:
|
hehe, seems like we're on the same idea here, making a component that could be rendered by either framework! I do like that idea a lot! |
And regarding registering you class on the global scope, we could do something like this instead which would work with es6 modules in the future:
|
No, constructor is too late. You have to register the class. I do not know how to go around registration though. Maybe a preprocessor could help here and add that call automatically. See also this comment: meteor/guide#8 (comment) |
Just my though, we're already doing a the preprocessing to parse the template. 👍 |
And can't we achieve the same effect by doing:
|
No. Registration is needed so that you can do |
But I would not try to make API for classes for each rendering engines the same. I think that each rendering engine should have API which its users prefer. What should be common is the component tree and how to render a child component which might of different type. |
alright, let me be a little more clear. what I meant is that we use the |
Oh you mean
|
yeah that could work, though it would be nice if it followed the es6 2015-10-08 10:05 GMT+02:00 Mitar [email protected]:
Cheers, |
When Meteor finally implements es6 modules it would be nice to support it 2015-10-08 10:17 GMT+02:00 Tim Brandin [email protected]:
Cheers, |
Hm, but this is not about symbol access. In fact, this often a direct opposite use case in the case of Blaze Components:
|
@mitar have you tested the latest version? Do you think we could get Blaze components using it? |
Not yet. I still have to wrap my head around it. :-) This is all too magical. :-) So probably what would be best to do is to split Blaze Components into even more limited core which can be supported both by Blaze and Sideburns, and then have on top more things which are more Blaze related (like animations). Or we might have to find ways to integrate that as well into React. So if you look at Blaze Components API. Do you think all that can be expressed in React as well? |
This really looks so good.
Or make React Components. :-) With the same API as Blaze Components.
So how I see Blaze is that it is just an engine which renders a reactive state to DOM. An React is a similar engine. How exactly is then API build for components on top of it is then something which can be adapted. So it would be great to make the API the same (template language, class structure), just the rendering would be different and then we could really compare them. Or even use one where each of them are stronger.
The text was updated successfully, but these errors were encountered: