Open DanielJWood opened 8 months ago
You may want to check out the way we handle this at Chalkbeat, where we have a columns
sheet that specifies the field, class name, label, and template functions that can be applied the content. There's no need to get external scripts involved. https://github.com/Chalkbeat/dailygraphics-templates/blob/master/table/index.html
Ah great! Will look. Thx.
Is it worth writing a script that auto generates the columnheaders, and row syntax, instead of you doing it manually each time. Potentially this could be a script run in the google doc in an app script, or something run locally. Basically, ingest column names, spit out html. For instance, for the columns:
foo, bar, baz
you would get the following:and
Of course there is always further customization that happens from this point but it could save a bit of time in reformatting the index.html