Hacker News new | ask | show | jobs
by douglee650 685 days ago
There are preprocessors that will do this. Conceptually, we would:

  include sprite-1.snippet
  include sprite-2.snippet
and it would write the defs into the page. Then later in the page, `<use>` the defs you included.