Using curly braces {} for templating content
See original GitHub issueOne 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:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@creatorpiyush absolutely! (sorry for the delayed response) 🐌
Can I take this issue if no one is working on it?