/user/nix/acre/mjt rename
author:
contributor:
published:
updated:
source uri:
Summary
// run a mjt template found using path_info and compiled using the mjtcom acre script
acre.load...
acre.load...
Content
// run a mjt template found using path_info and compiled using the mjtcom acre script
acre.load_module('mjt');
var id = acre.environ.path_info;
var pkg;
function _gotscript(r) {
mjt.log('gotscript', r.source)
pkg = r;
}
var url = 'http://' + acre.environ.server_name + '/acre/mjtcom' + id + '?callback=_gotscript';
acre.load(id, url);
acre.start_response(200, {'content-type': 'text/html; charset="utf-8"'});
pkg.load();
acre.write(mjt.flatten_markup(pkg.tcall));
acre.load_module('mjt');
var id = acre.environ.path_info;
var pkg;
function _gotscript(r) {
mjt.log('gotscript', r.source)
pkg = r;
}
var url = 'http://' + acre.environ.server_name + '/acre/mjtcom' + id + '?callback=_gotscript';
acre.load(id, url);
acre.start_response(200, {'content-type': 'text/html; charset="utf-8"'});
pkg.load();
acre.write(mjt.flatten_markup(pkg.tcall));
Created by:
nix
Apr 2, 2008
Last edited by:
Constant Gardener Process
Aug 18, 2009
Recent Discussions about None
There is no discussion about this document.
Start the Discussion »