用玉石编写书法和手写笔

compile coffescript and stylus in jade

本文关键字:手写笔 石编写      更新时间:2023-09-26

我正在使用gump,我有一个问题:

有没有办法在带有脚本样式标签的jade文件中编写coffescapet和手写笔,将它们编译成三个不同的文件(html、css和js)?

例如,我想写这样的东西:

h1.foo#bar hello, world!
style
  .foo
    color $stylusVariable
script
  $('#bar').click ->
    console.log $(this)

并获取index.html、app.js和style.css(其中包含项目中的所有js和css代码)。你能帮我做一些必要的插件和gullow任务吗?

您应该在机器上检查jade版本,然后重读jade文档。Jade现在支持在Jade文件中编写js。

http://jade-lang.com/reference/filters/