2012-10-12 45 views
0

我有一个mixin看起来像这样插入新行手动玉

mixin preprocessor_instructions() 
    some text goes here 

这不只是actualy文字,但更多的我预处理一些高科技指令。我不希望它在任何标签内。问题是,当我在玉模板使用混入这样

+preprocessor_instructions 

它不插入输出HTML换行符这段代码之前,虽然我希望看到它那里有它看起来很漂亮。如何使用Jade手动插入换行符?

回答

0

您可以使用内嵌HTML:

mixin preprocessor_instructions() 
    | //- <- note the space after the pipe 
    some text goes here 

+preprocessor_instructions