Skip to content

Commit debf874

Browse files
committed
Merge pull request #31 in LCL/wolframengineforpython from feature/examples to master
* commit '200a9a43c56e244ea078815e38bd5a05c5776e09': new form page
2 parents 02cc334 + 200a9a4 commit debf874

File tree

1 file changed

+6
-5
lines changed
  • wolframwebengine/examples/demo

1 file changed

+6
-5
lines changed
+6-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
FormFunction[
2-
{"image" -> "Image", "filter" -> ImageEffect[]},
3-
ImageEffect[#image, #filter] &,
4-
"PNG",
1+
FormPage[
2+
{"From" -> "City", "To" -> "City"},
3+
GeoGraphics[
4+
Style[Line[TravelDirections[{#From, #To}]], Thick, Red]
5+
] &,
56
AppearanceRules -> <|
6-
"Title" -> "Welcome to Wolfram Web Engine",
7+
"Title" -> "Get travel directions for your trip",
78
"Description" -> TemplateApply["This is a sample application running on a `` Kernel.", $VersionNumber]
89
|>
910
]

0 commit comments

Comments
 (0)