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

Render navigation client-side #1184

Merged
merged 4 commits into from
May 6, 2020
Merged

Render navigation client-side #1184

merged 4 commits into from
May 6, 2020

Conversation

jtojnar
Copy link
Member

@jtojnar jtojnar commented May 2, 2020

Replaces #1064

Instead of EJS, we now use JSX syntax so we can import the templates as a JavaScript modules and do not have to mess up with ejs loader.

This is a prerequisite for filtering entries by sources and tags offline.

@jtojnar jtojnar changed the title Render sources in navigation client-side Render navigation client-side May 2, 2020
@jtojnar jtojnar force-pushed the client-side-templates-2 branch from 9db98dd to 3d5037c Compare May 3, 2020 02:30
@jtojnar jtojnar requested a review from niol May 3, 2020 02:38
@jtojnar jtojnar added this to the 2.19 milestone May 3, 2020
Copy link
Collaborator

@niol niol left a comment

Choose a reason for hiding this comment

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

Looks good.

@jtojnar jtojnar force-pushed the client-side-templates-2 branch from 3d5037c to 3fcac45 Compare May 6, 2020 19:58
@jtojnar jtojnar merged commit 3fcac45 into master May 6, 2020
@jtojnar jtojnar deleted the client-side-templates-2 branch May 6, 2020 20:06
jtojnar added a commit that referenced this pull request Jan 8, 2021
For legacy reasons, we escape tags and source titles on the server.

Previously, we used server side templates where we did not escape the values but with a switch to client-side templates in #1184, we started escaping those texts in the templates. This resulted in double escaped ampersands being shown to users.

Let’s unescape those values client-side for now since unescaping them in the database or on the server would break backwards compatibility for third party clients.

Fixes: #1241
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants