small addition to ba_log 2019-10-08
s-ol
3 years ago
29 | 29 | > [`/meta/mmm.dom/:text/html`](/meta/mmm.dom/:text/html) |
30 | 30 | > |
31 | 31 | > now, instead of asking for the rendered HTML document, we can also ask for the source, which is of the type |
32 | > `text/moonscript -> mmm/dom` (a Moonscript-script file that evaluates to a website-fragment): | |
32 | > `text/moonscript -> mmm/dom` (a Moonscript file that evaluates to a website-fragment): | |
33 | 33 | > [`meta/mmm.dom/:text/moonscript -> mmm/dom`](/meta/mmm.dom/:text/moonscript%20-%3E%20mmm/dom) |
34 | > | |
35 | > the source code was written in MoonScript, which compiles to Lua before it is executed. | |
36 | > We can also ask the server to do that for us: | |
37 | > `text/lua -> mmm/dom` (a Lua file that evaluates to a website-fragment): | |
38 | > [`meta/mmm.dom/:text/lua -> mmm/dom`](/meta/mmm.dom/:text/lua%20-%3E%20mmm/dom) | |
34 | 39 | > |
35 | 40 | > or, we could ask for the generated html fragment, but without the full HTML layout around it - |
36 | 41 | > that would be the type `text/html+frag`, as mentioned in the last post: |