--- /* -- the code in the frontmatter is only run at build time -- */ import { read, utils } from "xlsx"; /* parse workbook */ import b64 from "../data/pres.numbers"; const wb = read(b64, {type: "base64"}); /* generate row objects */ interface IPresident { Name: string; Index: number; } const data = utils.sheet_to_json(wb.Sheets[wb.SheetNames[0]]); ---

Presidents

{data.map(row => ())}
NameIndex
{row.Name}{row.Index}