Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个看起来像这样的mixin
mixin preprocessor_instructions() some text goes here
这实际上不仅仅是文本,而是我的预处理器的更多技术指令。我不希望它在任何标签内。问题是当我像这样在 Jade 模板中使用这个 mixin
+preprocessor_instructions
它不会在这段代码之前的输出 html 中插入换行符,尽管我希望在那里看到它让它看起来很漂亮。如何使用 Jade 手动插入换行符?
您可以使用内联 HTML:
mixin preprocessor_instructions() | //- <- note the space after the pipe some text goes here +preprocessor_instructions