Skip to content

Instantly share code, notes, and snippets.

@amitu
Created January 19, 2023 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitu/50ff6ecbbc99335edbc627eec84bedc1 to your computer and use it in GitHub Desktop.
Save amitu/50ff6ecbbc99335edbc627eec84bedc1 to your computer and use it in GitHub Desktop.
http processor example
-- 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