MDN/Archives/Kuma/Scripting: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 89: Line 89:
* Plentiful and intelligent HTTP-based caching
* Plentiful and intelligent HTTP-based caching


Content gets edited on Kuma. Document views get proxied through node.js-based
General flow looks like:
filter service that evaluates embedded template invocations. Communication
 
between Kuma and node.js service is heavily cached, stateless HTTP.
* Content gets edited on Kuma.
* Document views get proxied through a node.js-based filter service that evaluates embedded template invocations and injects the results into the response document.
* Communication between Kuma and node.js service is heavily cached, stateless HTTP.


'''DRAWRINGS GO HERE'''
'''DRAWRINGS GO HERE'''
Line 97: Line 99:
=== Code samples (imaginary) ===
=== Code samples (imaginary) ===


Inline expressions limited to invoking long-form templates, rather than
We can limit inline expressions to invoking long-form templates, rather than free-form scripting. Usage still looks familiar with respect to content "in the wild", though:<pre>
free-form scripting. Still looks familiar, though:<pre>
     <li>The <code>value</code> attribute of {{HTMLElement("li")}} now can be
     <li>The <code>value</code> attribute of {{HTMLElement("li")}} now can be
     negative as specified in HTML5. Previously negative values were converted
     negative as specified in HTML5. Previously negative values were converted
Confirmed users
920

edits

Navigation menu