Code Monkey home page Code Monkey logo

Comments (14)

mitar avatar mitar commented on May 21, 2024 4

I suggest that along with comments, community uses also upvotes and downvotes on the initial issue comment so that it is easier to see how we feel about proposed ideas.

from blaze.

necmettin avatar necmettin commented on May 21, 2024 3

This would effectively turn Blaze into WebComponents. I do not see why we want to make Blaze into something else (which is, let's be honest, uglier).

from blaze.

mitar avatar mitar commented on May 21, 2024 1

Hm, isn't this similar to how Jade is being used as an alternative way to write templates?

I think this could be done as an optional way to do it.

Or are you proposing that this should be the default for Blaze 2.0?

My personal opinion here is that I do like that Blaze is different from other frameworks and that this brings then people who like those different ways. It should be powerful to use and be easy to do things you can do in other frameworks, but I do not think it should be done in the same way. Diversity is good because people can then select what works for them. For me it is good that templating language (handlebars) is different from the language it is a template for (HTML).

from blaze.

brylie avatar brylie commented on May 21, 2024 1

The WebComponents specification is an open standard. By contributing to the standards process, we can shape the WebComponents to have the beautiful qualities of Blaze, and vice versa.

from blaze.

mitar avatar mitar commented on May 21, 2024

But I do think that we should make sure that this syntax and Jade and other alternative syntaxes can be and are supported.

from blaze.

aido179 avatar aido179 commented on May 21, 2024

While using html elements would look really nice, I feel there is a very strong argument against it. From a semantic point of view, HTML represents the static parts of the page, while the curly braces used by blaze/handlebars/spacebars etc. represents dynamically generated content.

It follows a well worn paradigm used by php, handlebars and other tools that render HTML. That familiarity is a strong benefit of blaze.

from blaze.

necmettin avatar necmettin commented on May 21, 2024

Using {{..}} rather than <..> makes it much easier to differentiate between an HTML element and a template element, which in turn increases readability. Using <..> would actually make finding things in text harder.

Even if we agree that <..> would be an acceptable alternative, it should be optional, if at all.

from blaze.

brylie avatar brylie commented on May 21, 2024

I would like to see Blaze move towards WebComponents specifications. In effect, Blaze 2.x can support custom HTML elements, taking a step towards WebComponents alignment.

from blaze.

mitar avatar mitar commented on May 21, 2024

Are you sure Blaze does not already support custom HTML elements?

from blaze.

brylie avatar brylie commented on May 21, 2024

I meant 'support the Custom Elements specification by aligning with the WebComponents standards'.

from blaze.

trusktr avatar trusktr commented on May 21, 2024

@brylie True!

from blaze.

brylie avatar brylie commented on May 21, 2024

Thanks for your positive reaction @trusktr. I have received mainly negative feedback when trying to discuss this idea.

from blaze.

filipenevola avatar filipenevola commented on May 21, 2024

I'm closing this issue because it's too old.

If you think this issue is still relevant please open a new one.

Why? We need to pay attention to all the open items so we should keep opened only items where people are involved.

from blaze.

trusktr avatar trusktr commented on May 21, 2024

The popular framework Vue uses <custom-element> syntax for its components.

If a component is not found, Vue falls back to just inserting the <custom-element> into the DOM, in which case an actual custom element instance will handle it.

The same thing could be done with Blaze, for example.

The syntax is a lot nicer than curly braces (that's just my opinion).

It can totally work!

from blaze.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.