Closed Bug 710728 Opened 8 years ago Closed 8 years ago
Support / convert Mind
Touch template scripts in migration script
MindTouch supports DekiScript, and MDN uses it to write server-side scripting in templates that are used in pages. Kuma needs to support at least the existing body of templates, and possibly the server-side scripting feature as well. This will probably be a tracking bug of its own. * Perform a survey of template scripts in use, get a sense of what are the most scripting intense and which are just parameterized HTML chunks. * Determine how crucial server-side scripting is, or if maybe we can get away with implementing some templates in Python. * If necessary, we can experiment with our own scripting system based on server-side JS. This deserves its own bug. Possibly something atop node.js & HTTP-addressable within the cluster * Could we get most of the value from a hybrid approach aiming at 80/20? eg. One kind of template that's parameterized HTML, another that's implemented in Python, and a few that are built with server-side scripting?
Found some bugs that are either duplicates or dependencies for this one. Adding them all to this one.
Once we get to the point of having kumascript far enough along to seriously tackle this task, it will probably end up being only partially susceptible to automation and still require some manual effort. Need to document the automatic parts / build tools in migration or the template editor. Things found so far: * ?? in DekiScript becomes || in EJS * .. in DekiScript becomes + in EJS * The XML literals mingled with code in DekiScript invert into markup mixed with <? ?> script blocks in EJS * Missing DekiScript API objects and methods need to be implemented, per bug 730707 * Alternatively, code relying on DekiScript APIs can be rewritten to use JS methods (eg. string.substr, etc)
So, bug 765225 kind of reads like a dup of this one. But, let's say that this one is about the automated migration and bug 765225 is the manual work to take them the rest of the way.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Summary: Support / convert MindTouch template scripts → Support / convert MindTouch template scripts in migration script
Component: Docs Platform → Editing
You need to log in before you can comment on or make changes to this bug.