Skip to content

feat(good-news): use template-runtime-display document shell - #199

Open
atherdon wants to merge 2 commits into
mainfrom
feat/good-news-use-document-shell
Open

atherdon wants to merge 2 commits into
mainfrom
feat/good-news-use-document-shell

Conversation

@atherdon

Copy link
Copy Markdown
Contributor

Switches the good-news renderer off its hand-rolled document wrapper and onto document() from @llazyemail/template-runtime-display.

Changes

  • wrapGoodNewsDocument now calls document({ lang: false, headHtml: goodNewsHeads(...), bodyAttributes: 'style=...', mainHtml }).
  • Removes the previous double </body> bug.
  • Same visual result: HTML5 doctype, no lang, page background on <body>.

Dependency

Requires the next @llazyemail/template-runtime-display release that adds the configurable shell options (lang, bodyAttributes, etc.). Safe to merge after that release is published and the dependency is bumped.

The current published 0.9.x does not yet accept these options.

Replace the hand-rolled wrapGoodNewsDocument with document() from
@llazyemail/template-runtime-display. Passes lang: false and the
page background via bodyAttributes.

Fixes the previous double </body>. Requires the next runtime release
that adds the shell options.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant