git.s-ol.nu mmm / 094b55d
small addition to ba_log 2019-10-08 s-ol 3 years ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2929 > [`/meta/mmm.dom/:text/html`](/meta/mmm.dom/:text/html)
3030 >
3131 > 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):
3333 > [`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)
3439 >
3540 > or, we could ask for the generated html fragment, but without the full HTML layout around it -
3641 > that would be the type `text/html+frag`, as mentioned in the last post: