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

fix: {{{}}} syntax is not being handled #1543

Open
Haidar0096 opened this issue Mar 4, 2025 · 1 comment
Open

fix: {{{}}} syntax is not being handled #1543

Haidar0096 opened this issue Mar 4, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Haidar0096
Copy link

Haidar0096 commented Mar 4, 2025

Minimal Repro:

  • Create a new brick
  • In the __brick__ folder, create file called test (or any other name)
  • inside test file, add the line {{{Haidar}}} says thank you Felix for the awesome package!
  • run the brick

Expected:

contents of test are literally {{{Haidar}}} says thank you Felix for the awesome package!

Actual:

contents are says thank you Felix for the awesome package!

Note:

The {{{}}} does not work even for file/folder names

@Haidar0096 Haidar0096 added the bug Something isn't working label Mar 4, 2025
@Haidar0096
Copy link
Author

Update:
In could use {{=<% %>=}}Put your escaped text here<%={{ }}=%> to escape things, but it acts weirdly in some cases.

Examples:

  • {{=<% %>=}}{{abc.pascalCase()}}<%={{ }}=%> results in {{#pascalCase}}{{abc}}{{/pascalCase}}
    To solve this, use {{=<% %>=}}{{<%={{ }}=%>abc.pascalCase(){{=<% %>=}}}}<%={{ }}=%>, ugly but works (note: what we did in the workaround is that we only escaped the {{ and }}
  • {{=<% %>=}}{{abc}}<%={{ }}=%> works normally and results in {{abc}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant