Coded something up in Couch in an interesting way? Have a snippet or shortcode to share? Post it here for the community to benefit.
7 posts Page 1 of 1
Hello,

I accomplished a subtle change to how source output looks in browser's view-source console. It helps to quickly navigate ourselves along the lines.

BEFORE:
2017-07-30-202423.png
2017-07-30-202423.png (26.16 KiB) Viewed 3166 times


AFTER:
2017-07-31-122817.png
2017-07-31-122817.png (32.06 KiB) Viewed 3166 times
This is very interesting, I will look at it in great detail!
Good job
Code updated with a small fix.
Updated with keeping conditional html-comments as in
<!--[if IE 8]><html class="ie ie8"> <![endif]-->
<!--[if IE 9]><html class="ie ie9"> <![endif]-->

Added more tags: folders, extends, block, block_parent, smart_embed

I really like to see the code as beautiful as if no cms ever touched it :) Just geeky enough :mrgreen:
Fixed regex to better match start-end of line.
If there are no downsides to this and it just looks objectively better maybe its worth merging with the main CouchCMS GitHub
keakie wrote: If there are no downsides to this and it just looks objectively better maybe its worth merging with the main CouchCMS GitHub

Thanks, I'm still polishing it. Also, CouchCMS does its job by outputting the html mostly untouched, so stripping comments is not expected from it. It is for advanced scenarios and geeky coders who work with the source often. One downside is that this addon is always on (have to go to kfunctions to turn it off).
You are free to try it on your system as is.
7 posts Page 1 of 1