nue icon indicating copy to clipboard operation
nue copied to clipboard

Custom delimiters

Open hooliy opened this issue 2 years ago • 3 comments

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. <% %>)

hooliy avatar Oct 07 '23 08:10 hooliy

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

tipiirai avatar Oct 09 '23 05:10 tipiirai

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.

hooliy avatar Oct 09 '23 06:10 hooliy

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.

ShiMeiWo avatar Oct 09 '23 07:10 ShiMeiWo