html partials #31

Closed
opened 2021-06-11 17:59:16 +02:00 by Sceptique · 0 comments
Owner

Look at how I can handle HTML generation in only one place.

  • All pages must be able to load without javascript
  • HTML of some part must factorized into another HTML file
  • An API must allow rebuilding some parts of the DOM

The process I think of is:

  • user load the page
  • user click on a button
  • JS catches the form event
    • it looks at the attribute "dynamic-call" which points to the api entrypoint
    • it sends the data
    • fetch the output, check if no error occured
    • IF NEEDED fetch a new HTML DOM partial based on the attribute "dynamic-partial"
    • update the DOM (based on the partial or the api output)
Look at how I can handle HTML generation in only one place. * All pages must be able to load without javascript * HTML of some part must factorized into another HTML file * An API must allow rebuilding some parts of the DOM The process I think of is: * user load the page * user click on a button * JS catches the form event * it looks at the attribute "dynamic-call" which points to the api entrypoint * it sends the data * fetch the output, check if no error occured * IF NEEDED fetch a new HTML DOM partial based on the attribute "dynamic-partial" * update the DOM (based on the partial or the api output)
Sceptique added the
feature
label 2021-06-11 17:59:16 +02:00
Sceptique added this to the To sort project 2021-06-16 19:48:44 +02:00
Sceptique modified the project from To sort to Sprint (v2.0 closed) 2021-06-18 21:52:09 +02:00
Sceptique added this to the v2.0 (Make the UX great -not again-) milestone 2021-06-18 21:52:13 +02:00
Sign in to join this conversation.
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Sceptique/LifePex#31
No description provided.