Skip to content

Commit

Permalink
feat(mjml-output): html block
Browse files Browse the repository at this point in the history
  • Loading branch information
iceava committed Mar 31, 2023
1 parent 07f26f3 commit 46cf6e6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions mjml-output/blocks/Html.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import {
HtmlBlock, IHtmlBlockOptions,
RenderingClass,
} from "@mjml-output/interfaces";

export class Navigation implements HtmlBlock, RenderingClass {

constructor(public innerHtml: string, public options: IHtmlBlockOptions) {
}

render(): string {
return `
<mj-raw>${this.innerHtml}</mj-raw>
`;
}
}

0 comments on commit 46cf6e6

Please sign in to comment.