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

The changes were applied to the precompiler before the file was compiled #1805

Closed

Conversation

ErfanKamalian
Copy link

How to fix it

To solve this problem, the explanations related to it were read first.
After studying the code, searching, researching and developing (R&D) about this problem, it was finally solved as follows:
Regex documents were studied and designed string with existing examples that can find \n and applied using the replace function.
Then, to optimize and not implement the dirty code, this function is called on the final file before compilation in precompiler.js.

Erfan Kamalian
web programming course -- Sharif University of Technology

@jaylinski
Copy link
Member

jaylinski commented Dec 23, 2021

@ErfanKamalian Thank you for your contribution.

As stated in #1738 (comment), this can be achieved by using a custom helper.

Since it can be a big pain to add a custom helper to all template-variables, we are thinking about adding a new hooks-function to allow global customizations of variables (see #1523 (comment)).

@jaylinski jaylinski closed this Dec 23, 2021
@ErfanKamalian
Copy link
Author

Thank you for your response.
I enjoyed this project and learned a lot. I agree with you on this problem as well.

I hope we can work together more.
I have just started web programming :)

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.

2 participants