-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ new ] support for mary-apply (#82)
- Loading branch information
Showing
4 changed files
with
179 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang=""> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="generator" content="pandoc" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> | ||
<title>Title TBA</title> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/msp-strath/Mary@latest/src/data-dir/shonkier.css" /> | ||
<!--[if lt IE 9]> | ||
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script> | ||
<![endif]--> | ||
<script src="https://cdn.jsdelivr.net/gh/msp-strath/Mary@latest/src/data-dir/Shonkier.js"></script> | ||
<script> | ||
var globalEnv = {}; | ||
globalEnv["primInfixAnd"] = {}; | ||
globalEnv["primInfixAnd"]["."] = VPrim("primInfixAnd",[]); | ||
globalEnv["primInfixEquals"] = {}; | ||
globalEnv["primInfixEquals"]["."] = VPrim("primInfixEquals",[]); | ||
globalEnv["primInfixGreater"] = {}; | ||
globalEnv["primInfixGreater"]["."] = VPrim("primInfixGreater",[]); | ||
globalEnv["primInfixGreaterEq"] = {}; | ||
globalEnv["primInfixGreaterEq"]["."] = VPrim("primInfixGreaterEq",[]); | ||
globalEnv["primInfixLess"] = {}; | ||
globalEnv["primInfixLess"]["."] = VPrim("primInfixLess",[]); | ||
globalEnv["primInfixLessEq"] = {}; | ||
globalEnv["primInfixLessEq"]["."] = VPrim("primInfixLessEq",[]); | ||
globalEnv["primInfixMinus"] = {}; | ||
globalEnv["primInfixMinus"]["."] = VPrim("primInfixMinus",[]); | ||
globalEnv["primInfixOr"] = {}; | ||
globalEnv["primInfixOr"]["."] = VPrim("primInfixOr",[]); | ||
globalEnv["primInfixOver"] = {}; | ||
globalEnv["primInfixOver"]["."] = VPrim("primInfixOver",[]); | ||
globalEnv["primInfixPlus"] = {}; | ||
globalEnv["primInfixPlus"]["."] = VPrim("primInfixPlus",[]); | ||
globalEnv["primInfixTimes"] = {}; | ||
globalEnv["primInfixTimes"]["."] = VPrim("primInfixTimes",[]); | ||
globalEnv["primInfixUnequal"] = {}; | ||
globalEnv["primInfixUnequal"]["."] = VPrim("primInfixUnequal",[]); | ||
globalEnv["primNumToString"] = {}; | ||
globalEnv["primNumToString"]["."] = VPrim("primNumToString",[]); | ||
globalEnv["primPickle"] = {}; | ||
globalEnv["primPickle"]["."] = VPrim("primPickle",[]); | ||
globalEnv["primPrefixNot"] = {}; | ||
globalEnv["primPrefixNot"]["."] = VPrim("primPrefixNot",[]); | ||
globalEnv["primStringConcat"] = {}; | ||
globalEnv["primStringConcat"]["."] = VPrim("primStringConcat",[]); | ||
globalEnv["primStringToNum"] = {}; | ||
globalEnv["primStringToNum"]["."] = VPrim("primStringToNum",[]); | ||
globalEnv["primUnpickle"] = {}; | ||
globalEnv["primUnpickle"]["."] = VPrim("primUnpickle",[]); | ||
</script> | ||
<script> | ||
var inputs = {}; | ||
inputs["GET_page"] = "examples/mary-apply.mary"; | ||
inputs["baseURL"] = | ||
"https://personal.cis.strath.ac.uk/conor.mcbride/shib/Mary/"; | ||
inputs["sitesRoot"] = "."; | ||
inputs["user"] = "testymctestyface"; | ||
</script> | ||
|
||
</head> | ||
<body> | ||
<form method="post"> | ||
<div style="color: white"> | ||
<div style="background-color:blue"> | ||
<p>1</p> | ||
<div style="background-color:red"> | ||
<p>2</p> | ||
<p>3</p> | ||
</div> | ||
<p>4</p> | ||
</div> | ||
<p>5</p> | ||
</div> | ||
<p>6</p> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
:::{.code-default .mary-eval} | ||
:::{style="color: white" mary-apply="{ txt -> ['Para txt] }"} | ||
:::{mary-apply="{ n -> primNumToString(n) }" style="background-color:blue"} | ||
:::{mary-apply="{ n -> 2 + n }"} | ||
``` | ||
0-1 | ||
``` | ||
:::{style="background-color:red"} | ||
``` | ||
0 | ||
``` | ||
``` | ||
1 | ||
``` | ||
::: | ||
::: | ||
``` | ||
4 | ||
``` | ||
::: | ||
:::{} | ||
``` | ||
"5" | ||
``` | ||
::: | ||
::: | ||
``` | ||
['Para "6"] | ||
``` | ||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters