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 delimeters #13

Open
Jacknq opened this issue Dec 18, 2022 · 6 comments
Open

Custom delimeters #13

Jacknq opened this issue Dec 18, 2022 · 6 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Jacknq
Copy link

Jacknq commented Dec 18, 2022

Hi,
is there any possibility to add custom
Custom delimeters? like {{ }} , {{=}} and so on..

@tatethurston
Copy link
Owner

Hey @Jacknq I’m happy to support this. Are you interested in arbitrary delimiters or just {{ instead of <%

@Jacknq
Copy link
Author

Jacknq commented Dec 19, 2022

Hi,
So in general any deliminiers make them configurable, like in squirelly, handlebars and so on. Even awesome If it keeps working with vs code plugin..
Also looking for option to execute template from code rightaway without compling?
Im looking to more things in your project, with questions.. if I should put them here or in general new issue.

Good work
Thanks for feedback

@tatethurston
Copy link
Owner

Im looking to more things in your project, with questions.. if I should put them here or in general new issue.

@Jacknq whichever you prefer. Here or new issues are both fine

@tatethurston
Copy link
Owner

Also looking for option to execute template from code rightaway without compling?

This is something I’m probably not going to support, because it only adds runtime overhead. That said, if you explain your use case I’m happy to consider it.

@tatethurston
Copy link
Owner

So in general any deliminiers make them configurable, like in squirelly, handlebars and so on.

I see the appeal in theory, but in real world projects I’m under the impression that the overwhelming majority of usages are either <% or {{, which makes me inclined to only support those tokens rather than arbitrary delimiters. I’m certainly open to counter points though

@Jacknq
Copy link
Author

Jacknq commented Dec 20, 2022

Ok, thats fair, even {{ is more readable then <%
So definitely, more diversity (flexibility) makes the solution more attractive.

@tatethurston tatethurston added enhancement New feature or request help wanted Extra attention is needed labels Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants