[Bug Request] Fix Nunjucks Comments
See original GitHub issue(Somewhere between a bug report and a feature request!)
- Insomnia Version: 5.14.3
- Operating System: OSX 10.13.3
Details
Per #646 Insomnia uses Nunjucks as a templating language, which supports comments in the format of {# comment #}
such as:
{
"heck": "yeah" {# great data #}
}
Currently Insomnia does support this technically, but when you complete typing one of these comments, it turns into a light blue clickable button thingy embedded in the text. When you click it, it brings up a modal that has the title “Edit” but no body or other options. There’s no other way to edit the comment.
As long as I’m griping, the presence of one of these comments also spoils the otherwise pristine and gorgeous syntax highlighting of my JSON payload! So they are a mixed blessing currently.
Thanks for an awesome REST client!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Nunjucks error reporting on imported file - Stack Overflow
In my code structure I have a main file, and import files containing macro's for the actual rendering of output. I want to...
Read more >nunjucks templating docs
nunjucks does not sandbox execution so it is not safe to run user-defined templates or inject user-defined content into template definitions. On the...
Read more >Pages - JMWE for JIRA Cloud - Confluence - Projects
A workflow post-function that copies all comments, or just the latest comment, ... comments to copy based on the results of a Nunjucks...
Read more >Nunjucks templating explained on the basis of AsyncAPI ...
Edit 14.04.2021 In this post, I explain how you can use Nunjucks to template information extracted from an AsyncAPI file.
Read more >Nunjucks Templating and CSS Styling | Eleventy RSS Reader ...
We conclude the Eleventy features by adding a final filter and some conditional template logic with Nunjucks. Then, we make progress adding ...
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
+1 for the option to edit comments. When working on APIs it’s useful to temporarily omit some parts of the payload.
Sorry! Not sure why Statebot closed this one