summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkiv/context-base.lmx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/context-base.lmx')
-rw-r--r--Master/texmf-dist/tex/context/base/mkiv/context-base.lmx13
1 files changed, 10 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/context-base.lmx b/Master/texmf-dist/tex/context/base/mkiv/context-base.lmx
index 482d43e8866..af8c3c12709 100644
--- a/Master/texmf-dist/tex/context/base/mkiv/context-base.lmx
+++ b/Master/texmf-dist/tex/context/base/mkiv/context-base.lmx
@@ -25,6 +25,9 @@
<style type="text/css">
<?lua inject(variables.cssdata) ?>
</style>
+ <?lua if variables.javascriptfiles then for k, v in ipairs(variables.javascriptfiles) do ?>
+ <script src="<?lua inject(v) ?>"></script>
+ <?lua end end ?>
<?lua if variables.styles then for k, v in ipairs(variables.styles) do ?>
<link rel="StyleSheet" href="<?lua inject(v) ?>" type="text/css" />
<?lua end end ?>
@@ -36,10 +39,14 @@
</script>
<![endif]-->
<?lua end ?>
+ <body>
<?lua if variables.action then ?>
- <form action="<?lua inject(variables.action) ?>" enctype="multi-part/form-data" method="post">
+ <?lua if variables.formmethod == "get" then ?>
+ <form action="<?lua inject(variables.action) ?>" method="get">
+ <?lua else ?>
+ <form action="<?lua inject(variables.action) ?>" enctype="multi-part/form-data" method="post">
+ <?lua end ?>
<?lua end ?>
- <body>
<div id="top"><?lua if variables.title then ?>
<div id="top-one">
<div id="top-two"><?lua
@@ -81,8 +88,8 @@
<?lua inject(variables.maintext) ?>
</div>
</div>
- </body>
<?lua if variables.action then ?>
</form>
<?lua end ?>
+ </body>
</html>