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

functionHeader not support {} #289

Open
kstan79 opened this issue Jun 6, 2024 · 1 comment
Open

functionHeader not support {} #289

kstan79 opened this issue Jun 6, 2024 · 1 comment

Comments

@kstan79
Copy link

kstan79 commented Jun 6, 2024

Describe the bug
I'm using eta to generate generate some typescript code. when it read variable it will call specific typescript function via functionHeader. So far it work well until I need to define function/if/else cause it content symbol "{}" as below. I addedm ''mbefore the result same.
EtaError [Eta Error]: Bad template syntax

To Reproduce
Steps to reproduce the behavior:

  1. Type in 'functionHeader consist of {/}'
  2. Call function 'functionHeader'
  3. Look at result in 'console'

Expected behavior
by right it shall execute correctly and complete update template.

Screenshots
Below screenshoot demonstrate generate failed
Screenshot 2024-06-06 at 12 14 03 PM

Package & Environment Details
node v20.9.0
OS: MacOS

@nebrelbug
Copy link
Collaborator

Try adding a newline between each function you declare.

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

No branches or pull requests

2 participants