question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using curly braces {} for templating content

See original GitHub issue

One of the consumers of our system uses curly braces for content replacement in strings.

Due to the way that SD currently uses curly braces in the build process there is no way I can have a string that includes the braces for consumption.

I have tried a number of ways to escape the braces with no luck

Other languages and templating systems seem to use the concept of using double curly braces to handle this scenario.

It could be a way that SD could also handle it but am open to anything else that would allow the scenario to be achieved

e.g. screenHeadingContent: {value: "Welcome's to the {{0}} screen"}

would build to

screenHeadingContent: "Welcome's to the {0} screen"

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dbanksdesigncommented, Jun 4, 2020

@creatorpiyush absolutely! (sorry for the delayed response) 🐌

1reaction
creatorpiyushcommented, May 8, 2020

Can I take this issue if no one is working on it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Please Consider Not Using Curly Brackets {} in Template Files
There are all three very good reasons to use brackets, so why am I strongly advocating against the use of brackets in template...
Read more >
What do triple curly braces indicate? - Stack Overflow
What do triple curly braces indicate? ; It's probably just markup for a templating engine. Tell your mate to stop being a dick....
Read more >
The Dynamic Part of a Dynamic Web Program - Google Sites
The simplest way to specify dynamic content within an HTML template is with double curly brackets, as in the following example: <p> The...
Read more >
Using curly brackets in JCI template loop? - WordPress.org
Hi Bernhard, I am trying to put Javascript code into the JCI template of the free plugin. How can I distinct between field...
Read more >
20.26. kb-00025: How Can I render Double Curly Braces ...
Often times, content based Golang templating is used to generate template files used by other systems on the target machine (eg Jinja, Ansible,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found