Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 1.22 KB

README.md

File metadata and controls

46 lines (39 loc) · 1.22 KB

3-libras

2-libras

hi

2-libras

again

Example Details
obj = { salutation: "Hey!", ... }
result = RRF "survey.ftl" obj
Renders the template survey.ftl (located in this flow's base path) and resulting markup is replied to user's browser.
Data submitted by the user is ignored
obj = { salutation: "Hey!", ... }
result = RRF "survey.ftl" obj
Renders the template survey.ftl by injecting the data passed in obj and the resulting markup is replied to user's browser.
Data submitted by the user is stored in variable result: a map whose keys are named according to the form fields present in survey.ftl
CodeMeaning
it = { success: true, data: { userId: "as9233Qz", ... }}
Finish it
Flow finished successfully. Some relevant data attached
it = { success: false,
    error: "User entered a wrong password 3 times" }
Finish it
Flow failed. Error description `attached`
it = { success: false,
    error: "User entered a wrong password 3 times" }
Finish it
Flow failed. Error description attached