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

feat: STRF-11908 Provide public endpoints for setting templates and translations #361

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

jairo-bc
Copy link
Contributor

What? Why?

Added public methods for:

  • addTemplates
  • addTranslations
  • getPreProcessor

How was it tested?

  • npm test
  • cdvm

cc @bigcommerce/storefront-team

@jairo-bc jairo-bc requested review from a team and bc-max April 15, 2024 16:41
it('should add templates to paper', async (done) => {
const paper = new Paper(null, null, assembler);
paper.addTemplates(paper.getPreProcessor()({
'pages/product': '<html>{{> pages/partial}}</html>',
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe like this?

Suggested change
'pages/product': '<html>{{> pages/partial}}</html>',
'pages/product': '<html>{{pages/partial}}</html>',

@jairo-bc jairo-bc merged commit 21b9c9b into master Apr 16, 2024
2 checks passed
Copy link
Contributor

🎉 This PR is included in version 4.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants