> For the complete documentation index, see [llms.txt](https://jack80342.gitbook.io/thymeleaf/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jack80342.gitbook.io/thymeleaf/i.-using-thymeleaf/11-zhu-shi-yu-kuai/11.3.-thymeleaf-prototype-only-comment-blocks.md).

# 11.3. Thymeleaf原型注释块

Thymeleaf允许定义特殊的注释块：当模版被静态地打开（比如，原型）时，它是注释，但是当Thymeleaf执行时，则是普通的标记。

```markup
<span>hello!</span>
<!--/*/
  <div th:text="${...}">
    ...
  </div>
/*/-->
<span>goodbye!</span>
```

Thymeleaf的解析系统将简单地移除`<!--/*/`和`/*/-->`标记，但不移除它的内容。所以，内容就会被留下来，并且没有被注释。当执行模版时，Thymeleaf实际上看到的是 ：

```markup
<span>hello!</span>

  <div th:text="${...}">
    ...
  </div>

<span>goodbye!</span>
```

与解析器级别注释块一样，这个特性不依赖方言。
