# 我们可以用 \`.gjs\` 作为路由模板吗？

**URL:** <https://meta.discourse.org/t/can-we-use-gjs-for-route-templates/357046>\
**Category:** Development\
**Created:** [2025年三月12日 23:39 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:** 7

<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:** [2025年三月14日 22:45 UTC](https://meta.discourse.org/t/can-we-use-gjs-for-route-templates/357046/7 "2025-03-14T22:45:38Z")

</div>

我的 SCSS 未加载。有什么想法吗？我已按照核心中的聊天插件设置了我的文件：[https://github.com/discourse/discourse/tree/47248573feb648364833254396892bedf83b7166/plugins/chat](https://github.com/discourse/discourse/tree/47248573feb648364833254396892bedf83b7166/plugins/chat)。

我在 plugins.rb 中有：

```rb
register_asset "stylesheets/common/index.scss"

```

在 `assets/stylesheets/common/index.scss` 中：

```scss
@import "common";

```

在 `assets/stylesheets/common/common.scss` 中：

```scss
body:has(#print-root) {
  header,
  .avatar,
  .sidebar-wrapper {
    all: unset; // all: unset 可能会有点过于激进
    display: none !important;
  }
}

```

---

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