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.

option to preserve html comments

See original GitHub issue

Hi,

we are using nginx serversideincludes infront of our application. nginx SSIs are expressed as html comments (https://nginx.org/en/docs/http/ngx_http_ssi_module.html) (<!--# include file="footer.html" -->) Unfortunately jte strips all html comments without providing an option keep them which removes all nginx SSI expressions as well.

Could you please provide an option to keep html comments as they are.

My current workaround is:

$unsafe{"<!--"}# include virtual="${virtual}" -->

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
casidcommented, Feb 6, 2021

@Fender123 this morning publishing to maven central worked again. 1.5.1 is live containing this fix 👍

1reaction
casidcommented, Feb 3, 2021

Awesome, thanks for the feedback @Fender123. I’ll put together a bugfix release this week and close this issue once it is out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Option to preserve html comments #1420 - vitejs/vite - GitHub
Please describe. Removing all comments in HTML files is a bit heavy-handed. I was trying to port an application that makes uses of...
Read more >
The HTML Comment Tag: Here's How To Use It In Your Code »
Ignore-Me Code: How to put comments into your HTML.
Read more >
HTML Comment – How to Comment Out a Line or Tag in HTML
To add a single-line comment, just hold down the combo of keys shown above inside the code editor. Then the whole line you're...
Read more >
How to Comment & Comment Out in HTML - HubSpot Blog
To “comment out” in HTML, simply place the < !╌ ╌> tags around the code you want to hide. These tags will tell...
Read more >
How to Write HTML Comments - Career Karma
HTML comments are notes to keep HTML code organized and are ignored by the browser.
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