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

Custom delimiters #75

Open
hooliy opened this issue Oct 7, 2023 · 3 comments
Open

Custom delimiters #75

hooliy opened this issue Oct 7, 2023 · 3 comments
Labels
low priority Done later

Comments

@hooliy
Copy link

hooliy commented Oct 7, 2023

Mainly used for generating files based on React templates in Node.js, { } syntax conflicts with the syntax in React. Is it possible to customize the delimiter?

Custom delimiters (e.g. <% %>)

@tipiirai
Copy link
Contributor

tipiirai commented Oct 9, 2023

Maybe. Can you first describe why you want to mix React and Nue? Are you forced to do this, or the React mix solves some particular problem? Or is Nue lacking features? I want to understand!

Thanks

@hooliy
Copy link
Author

hooliy commented Oct 9, 2023

As Nuejs can run on the server and has elegant syntax, I hope to use Nuejs as a replacement for EJS to create a code generator tool. Based on templates, it can generate React code, similar to schematics-angular-builds.

@ShiMeiWo
Copy link

ShiMeiWo commented Oct 9, 2023

Regardless of the purpose, I think it would be easier to use the delimiter if it could be changed as needed. For example, they anticipate many requests for "{{" and "}}" instead of "{" and "}" and so on.

@tipiirai tipiirai added the low priority Done later label Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low priority Done later
Projects
None yet
Development

No branches or pull requests

3 participants