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); } });
Created by jdouglas Jul 16, 2008
Last edited by jdouglas Jul 18, 2008
View topic history »

Comments

There is no discussion about this document.

Start the Discussion »