kellpossible / avalanche-report

A simple self-hosted web server for creating and managing an avalanche forecast for a region, along with accepting public observations.
GNU Affero General Public License v3.0
21 stars 2 forks source link

Use runtime templates #7

Closed kellpossible closed 1 year ago

kellpossible commented 1 year ago

Currently I'm using html-builder to build the HTML directly in Rust code. If we use runtime templates instead, it will increase the compile time, but also compile times are less of an issue for iterating on page design. Runtime templates are easier for other people to contribute to (than Rust code) if they know a little HTML, and also allow the future possibility for customized templates without requiring a rebuild of the software. This will allow other future forecast regions to customize the design of their website.

Runtime Template Library Options: