Skip to content

Commit

Permalink
feat(hiccup-html): add comment(), related to #367
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Nov 30, 2022
1 parent 1fdef98 commit fe952d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/hiccup-html/src/sections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,8 @@ export const [
export const [h1, h2, h3, h4, h5, h6] = [1, 2, 3, 4, 5, 6].map((i) =>
defElement("h" + i)
);

export const comment = (...body: string[]) => [
"__COMMENT__", // keep tag in sync with thi.ng/hiccup
...body,
];

0 comments on commit fe952d5

Please sign in to comment.