pugjs/pug

mixin - using #[block] fails

Open

#3,004 建立於 2018年4月21日

在 GitHub 查看
 (7 留言) (0 反應) (0 負責人)JavaScript (21,509 star) (1,955 fork)batch import
Good First Issuebug

描述

The following does not work. The block does not expand. (Interestingly, it does with pug-php.

mixin a()
    span somehting #[block]

+a()
    b text

exptected:

<span>something <b>text</b></span>

貢獻者指南

mixin - using #[block] fails · pugjs/pug#3004 | Good First Issue