2 Technologies:
I come from the meteor side, I personally
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
This is rendered using Blaze template
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);