钢笔编译器
gears-stylus的Python项目详细描述
Stylus编译器用于Gears。此软件包已包含手写笔源 为您编写代码,因此您不必担心自己安装它。
捆绑手写笔版本:0.45.1
安装
使用pip安装gears-stylus:
$ pip install gears-stylus
要求
gears-stylus要求在系统中安装node.js。
用法
将gears_stylus.StylusCompiler添加到environment的编译器注册表:
from gears_stylus import StylusCompiler environment.compilers.register('.styl', StylusCompiler.as_handler())
如果在django项目中使用gears,请将此代码添加到其设置中:
GEARS_COMPILERS = { '.styl': 'gears_stylus.StylusCompiler', }