Created
January 19, 2023 11:12
-
-
Save amitu/50ff6ecbbc99335edbc627eec84bedc1 to your computer and use it in GitHub Desktop.
http processor example
This file contains hidden or 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
-- import: fpm/processors | |
-- ftd.text: todo app | |
-- record todo-item: | |
integer id: | |
caption title: | |
string status: | |
body description: | |
-- todo-item list todo-list: | |
$processor$: processors.http | |
url: https://kameri-service.herokuapp.com/api/sample/ | |
-- ftd.column: | |
spacing.px: 10 | |
padding.px: 10 | |
-- todo-view: $t | |
$loop$: $todo-list as $t | |
-- end: ftd.column | |
-- component todo-view: | |
caption todo-item t: | |
-- ftd.column: | |
spacing.px: 10 | |
padding.px: 10 | |
border-width.px: 1 | |
border-radius.px: 5 | |
-- ftd.text: $todo-view.t.title | |
-- ftd.integer: $todo-view.t.id | |
-- ftd.text: $todo-view.t.status | |
-- ftd.text: $todo-view.t.description | |
-- end: ftd.column | |
-- end: todo-view | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment