# Can we use \`.gjs\` for route templates?

**URL:** <https://meta.discourse.org/t/can-we-use-gjs-for-route-templates/357046>\
**Category:** Development\
**Created:** [March 12, 2025, 11:39pm UTC](https://meta.discourse.org/t/can-we-use-gjs-for-route-templates/357046 "2025-03-12T23:39:40Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![bitmage](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bitmage/32/389881_2.png) [@bitmage](https://meta.discourse.org/u/bitmage)\
**Post date:** [March 17, 2025, 6:28pm UTC](https://meta.discourse.org/t/can-we-use-gjs-for-route-templates/357046/12 "2025-03-17T18:28:18Z")

</div>

I’m having problems with the rules under `body:has()` being applied. They don’t appear to be updating in the asset compilation pipeline. I run `d/rake assets:clobber tmp:clear` and restart the server with `d/rails s` and they still don’t update.

For instance I can put `body { background-color: red !important; }` in the `body:has()` section and it doesn’t appear at all in the styles for the body element. It’s not just that it’s being overridden - it’s just not present at all in “styles” in the devtools.

When I place the same line of CSS outside of `body:has()` then it displays just fine.

`document.querySelector("body:has(#print-root)") !== null` in the browser console returns true. And _some_ rules from `body:has()` are being applied.

I’m wondering if there could be rules in the asset generation pipeline that prevent these changes from coming through.

---

_[View the full topic](https://meta.discourse.org/t/can-we-use-gjs-for-route-templates/357046)._
