1. 首页
  2. 数据库
  3. 其它
  4. python实现sublime3的less编译插件示例

python实现sublime3的less编译插件示例

上传者: 2020-12-30 14:05:37上传 PDF文件 32.79KB 热度 26次
利用http://tool.oschina.net/less 提供的接口,发送请求进行远程编译.再将编译好的less,保存为同名后缀为css的文件中.第一次使用python,代码也是拼拼凑凑的.需要加上线程进行异步请求,但是不会... 复制代码 代码如下:import sublime, sublime_pluginimport urllibimport json class exampleCommand(sublime_plugin.TextCommand): def run(self, edit): file_name=self.view.file_name(); if file_name.
下载地址
用户评论