summaryrefslogtreecommitdiff
path: root/view/html
AgeCommit message (Collapse)Author
2024-03-03view: Add template 'nav'xengineering
The <nav> section is the same on every page. This new template reduces code duplication.
2024-03-03Add ID to URL in recipe updatesxengineering
This makes the update URL more consistent with the other ones. A check ensures consistency of the URL and JSON ID values.
2024-03-03view: Provide recipe deletionxengineering
2024-03-03view: Replace edit by view parameterxengineering
The old edit URL parameter allowed to select one different HTML template. A more generic approach is to provide a view parameter which allows to use multiple alternative HTML templates for the same data defined by the Go struct. This makes implementing additional pages like a confirm page for recipe deletion easier.
2024-03-03view: Send forms as JSON with JavaScriptxengineering
While forms can be send without JavaScript this new approach has the benefit that the whole data is send as one JSON. This JSON format can also be used for an API or testing.
2024-02-15view: Add doctype to HTMLxengineering
2024-02-15view: Reference /recipes with home buttonxengineering
The index page / provides a redirect to /recipes but this is inefficient since two HTTP requests are required.
2024-02-15view: Add edit view for model.Recipe typexengineering
2024-02-13view: Implement GET handler for model.Recipexengineering
2024-02-13view: Implement GET handler for model.Recipesxengineering