pug中使用coffee-script

/***pug***/
block script
  script
    :coffee-script
      $(document).ready ->
        return

在使用express默认模版 pug(jade) ,想要在内使用coffee需要在 package.json中安装并使用jstransformer-coffee-script

转载于:https://www.jianshu.com/p/8b3ebffdf791

猜你喜欢

转载自blog.csdn.net/weixin_34205076/article/details/91146713
pug