Skip to content

Commit 3466c6c

Browse files
committed
Add map lookup.
1 parent ff5d85c commit 3466c6c

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/web/js/transpile.xml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,23 @@ else:
8080
<translations />
8181
<inputs>
8282
<input type="%upvar">name</input>
83-
<input type="%n">val</input>
83+
<input type="%s">val</input>
84+
</inputs>
85+
<script>
86+
<block s="doReport">
87+
<l />
88+
</block>
89+
</script>
90+
</block-definition>
91+
92+
<block-definition category="Maps" s="%'name' [ %'arg' ]"
93+
type="reporter">
94+
<header />
95+
<code>&lt;#1&gt;[&lt;#2&gt;]</code>
96+
<translations />
97+
<inputs>
98+
<input type="%var">map</input>
99+
<input type="%s">key</input>
84100
</inputs>
85101
<script>
86102
<block s="doReport">

0 commit comments

Comments
 (0)