/guid/9202a8c04000641f8000000007deb8ba rename

author:

contributor:

published:

updated:

source uri:

Acre Doc /freebase/acre_doc

Handler:

Default Configuration:

Acre Doc /freebase/acre_doc

Handler:

Default Configuration:

Summary

// compile a mjt template found using path_info
// return the source as text/javascript

acre.load...

Content

// compile a mjt template found using path_info
// return the source as text/javascript

acre.load_module('mjt');

var id = acre.environ.path_info;
var cb = 'callback' in acre.environ.params ? acre.environ.params.callback : null;
var url = acre.environ.freebase_service_url + '/api/trans/raw' + id;

var pkg = mjt.acre.compile_url(url, 'div'); // fragment will be wrapped in tag

acre.start_response(200, {'content-type': 'text/javascript; charset="utf-8"'});

if (cb)
acre.write(cb + '(');
acre.write(pkg.toJS());
if (cb)
acre.write(')');

Created by: willmoffat Apr 11, 2008
Last edited by: Constant Gardener Process Aug 18, 2009

Recent Discussions about None

There is no discussion about this document.

Start the Discussion »
Explore the Data
View all the data we have for /guid/9202a8c04000641f8000000007deb8ba
Flag this Document
Why do you want to flag this document?