Commit Graph

8 Commits

Author SHA1 Message Date
Sage Vaillancourt 76a61f69e0 More precise CSS optimization. 2022-09-23 08:27:38 -04:00
Sage Vaillancourt 0c07b5b0f2 Several fixes and improvements.
"Better" CSS minifying.
Adjust psycopg imports and some usages.
Fix viewport scaling for mobile.
Switch gunicorn to default https port when running in prod.
Correct /dbtest route and add simple /update skeleton
2022-09-22 15:05:17 +00:00
Sage Vaillancourt b5e892f57e Start toying with some simple db functionality. 2022-09-21 23:14:50 -04:00
Sage Vaillancourt 7398773714 Cache the default rendered home page
A bit hacky, since CLForm can't seem to initialize properly without
being part of a request. To avoid a reference-before-assignment error,
the INDEX variable is first initialized as a global in __init__.py. But
it is definitely faster. Repeated renders take around 2ms each. Reading
the cached value takes about 0.002ms.

Also split index() into index_get() and index_post(), since GET calls
always use the cached version, and POST calls never do.
2021-07-31 23:21:59 -04:00
Sage Vaillancourt 4f8bfe846f Add basic CSS minification.
Added correct lang writing.html
2021-07-28 22:51:39 -04:00
Sage Vaillancourt b8ddd290a7 Move generate into CLData as generat_pdf() 2021-07-27 23:03:03 -04:00
Sage Vaillancourt aaa4117e7f Now generates customized PDFs 2021-07-23 23:09:08 -04:00
Sage Vaillancourt 8a15cc524f Init commit
TODO: Collect form data, process data into latex renderables, generate unique
id when submitting, styling, etc.
2021-07-23 17:30:15 -04:00