Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oidc: use mustache for templating #1014

Merged
merged 1 commit into from
Oct 3, 2023
Merged

Conversation

alxndrsn
Copy link
Contributor

@alxndrsn alxndrsn commented Oct 2, 2023

Alternative approach to #1008 & #1011.

@alxndrsn alxndrsn marked this pull request as ready for review October 2, 2023 18:25
@alxndrsn alxndrsn requested a review from matthew-white October 2, 2023 18:25
@@ -118,47 +162,7 @@ module.exports = (service, endpoint) => {
// Instead, we need to render a page and then "browse" from that page to the normal frontend:

// id=cl only set for playwright. Why can't it locate this anchor in any other way?
Copy link
Member

Choose a reason for hiding this comment

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

Maybe move this comment closer to loaderTemplate above?

</div>
</body>
</html>
`;
parse(template); // caches template for future perf.

const frontendPage = ({ head='', body }) => render(template, { head, body });
Copy link
Member

Choose a reason for hiding this comment

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

I commented in #981 that I think we should try to remove frontendPage() entirely. But that's probably a task for another PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ done
Development

Successfully merging this pull request may close these issues.

2 participants