edge-js/edge

Blaze/Handlebars vs Edge

Closed this issue · 1 comments

Package version

6.0

Describe the bug

Given your knowledge of edge, how feasible do you think it's to make it backwards compatible with Blaze? I already started a discussion about this on the forums and GH.

In terms of the syntax, it's pretty similar, though the issue lies in the other sematics that're found in the js file accompanying the html file like helpers and events. Also, lifecycle events like onRendered, onCreated and onDestroyed.

This has pretty big upsides to both parties. For edge, this would open up the gates to lots of Meteor developers and the associated community. And for us Meteor developers, this means a much modern view layer that's actually well maintained.

On a side note, I do believe both Meteor & Adonis are tying to achieve the same thing yet go different about it due to their heritage and circumstances. It'd be definitely great to merge our efforts and learn from each other.

Looking forward to hearing your opinion on this @thetutlage

Hello @harryadel

Sorry it took a while to reply to this thread, as I was busy with other work.

I am not much aware with the inner workings of Blaze. At the high level, it looks like a template engine that renders on the backend and then provide reactivity on the frontend at the same time.

I am personally not a big fan of blurring lines when it comes to templating. I use Edge to render static HTML and then use Alpine.js separately for interactivity.

So for now, I will let Edge as it is and not change its direction.

Also, I read this discussion thread meteor/blaze#442 and I agree with radekmie, mixing Blaze and Edge is impossible because of different ideas and the different directions