ESLint Components

Components used across this site.


A donation is rendered using the donationItem() macro imported from components/donation.macro.html. The macro takes parameters:

  • image (of entity that donated)
  • name (of entity that donated)
  • donation amount
  • donation date

Typically, the data for the donation is pulled from a data file and the values are set and passed to the macro. You can find an example of that in the Sponsors page.


<!-- import the macro -->

<!-- use the macro -->
{ { donationItem({
image: "",
name: "Google Chrome",
amount: 100000,
date: "2020-10-10"
}) } }


Google Chrome


+ 100000