| published |
| updated |
| source uri |
| author |
| contributor |
summary
content
var util = acre.require("freebase:worker");
var templates = acre.require("freebase:templates");
util.doIfThereIsId(function(id) {
var settings = {};
var o = util.getHotshot(id, settings);
var html = mjt.flatten_markup(templates.renderFragment(o));
acre.start_response(200, { 'content-type': 'text/plain; charset="UTF-8"' });
var callback = util.getCallback();
if (callback != null) {
acre.write(callback + "(");
acre.write(JSON.stringify(html));
acre.write(")");
} else {
acre.write(html);
}
});
Comments
There is no discussion about this document.
Start the Discussion »
