Skip to content

v0.4.0

Latest
Compare
Choose a tag to compare
@egoist egoist released this 22 Dec 17:51
· 22 commits to main since this release

New API:

import fs from "fs"

const post = compileTime(async () => {
  const post = await fs.promises.readFile("./post.md", "utf8")
  return {
    data: { post },
  }
})

assert.equal(post, "...the content of the post...")

Just use the magic compileTime function.