How do Meteor's blaze and Famo.us play together?

后端 未结 5 1735
[愿得一人]
[愿得一人] 2021-02-02 00:48

2 Technologies:

  • Meteor with the blaze templating engine
  • Famo.us with their awesome gui framework

I come from the meteor side, I personally

5条回答
  •  半阙折子戏
    2021-02-02 01:35

    In addition to "Namal Goel"'s answer: here is an example on how to render a Meteor template into a famous surface:

    In a .html file

    
    

    Adding the template to a context:

    var MeteorSurface = require('library/meteor/core/Surface');
    
    var meteorTest = new MeteorSurface({
        template: Template.test,
        size: [200, 200]
    })
    
    aContext.add(meteorTest);
    

提交回复
热议问题