-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
[IDEA] Components represented as HTML elements rather than spacebars syntax. #58
Comments
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). |
But I do think that we should make sure that this syntax and Jade and other alternative syntaxes can be and are supported. |
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. |
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. |
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. |
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. |
Are you sure Blaze does not already support custom HTML elements? |
I meant 'support the Custom Elements specification by aligning with the WebComponents standards'. |
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). |
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. |
@brylie True! |
Thanks for your positive reaction @trusktr. I have received mainly negative feedback when trying to discuss this idea. |
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. |
The popular framework Vue uses If a component is not found, Vue falls back to just inserting the 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! |
It may be nice that instead of writing
we can write
This is more inline with other view layers (React, Angular, and others), and expands on the HTML standard rather than having a separate syntax just for Blaze components.
The text was updated successfully, but these errors were encountered: