matcha-devs / matcha

A comprehensive web-based personal finance tracker and budgeting tool.
6 stars 0 forks source link

Use HTMX instead of static templates 😃 #9

Closed CarlosACJ55 closed 4 months ago

CarlosACJ55 commented 4 months ago

Purpose

Replacing interactive features with htmx patterns that futrure features can follow.

Usage

Works incredibly well with intellij IDEs as they autocomplete and lint *.go.html files with the new config, otherwise same use as always.

Changes

Renamed template extensions and fixed IDE configs.

Added explicit argument and return value names to mysql.db APIs

Remopved the use of _ in unit tests 👍

Finally resolpved glitchy Sign up page! Works perfect now. (In the past, the post request would be sent, but redirection did not work at all.)

Rationale

HTMX allows us to develop UI as mostly backend work, with efficient use of data. This changed deletes the need for 2 whole html pages and simply replies to submission requests with tiny plaintext string error messages that get rendered client side at lightning speed.

Dependencies

N/A

Issues and Bugs

N/A

Possible Solutions

N/A

Additional Notes

N/A

Contributors(@):

@CarlosACJ55

Checklist before submitting