Skip to content

Adding template support on top of jsx #46

@chompomonim

Description

@chompomonim

I like initial ideas of components based Blaze2 and what Blaze Components try to do. React may be much better platform to that that Blaze. I understand that fist of all you wanted to make people more easy way of moving they apps into react so you wanted to be as stict with Blaze API as possible. Have you any plans to add components support into sideburns?

I'd like to have code like this:

<template name="Page">
  <div class="page">
   <ul>
   {{#each person in people}}
       <li onClick={{this.clickEvent}}>Hello {{person.name}}</li>
    {{/each}}
   </ul>
  </div>
</template>

class Page extends React.Component {
  mixins: [ReactMeteorData],
  getMeteorData() {
    return {
      people() {
        return People.find();
      }
    }
  },
  clickEvent() {
    console.log('Hello world');
  },
  render() { return Template.Page }
}

Is it possible in any way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions