【文件属性】:
文件名称:atom-smart-template:Atom编辑器的模板包
文件大小:585KB
文件格式:ZIP
更新时间:2021-04-28 22:57:44
CoffeeScript
atom-smart-template软件包
该软件包旨在使用参数从模板快速轻松地创建文件或多个文件和目录。
如何使用
从文件树的上下文菜单中使用命令“从模板创建文件”。
如何创建新模板
模板的主文件是“ index.js”:
module . exports = {
name : "Base template" ,
params : [ "Name" , "Body" ] ,
directory : false ,
rules : function ( config ) {
return ( {
items : [
{ destinationFile : "index.html" , sourceTemplateFile : "index.template" } ,
【文件预览】:
atom-smart-template-master
----keymaps()
--------atom-smart-template.cson(429B)
----package.json(868B)
----menus()
--------atom-smart-template.cson(509B)
----assets()
--------atom-smart-templates-files-creation.jpg(193KB)
--------atom-smart-templates-files-creation-yt.png(190KB)
--------BaseTemplate()
--------how-to-create-new-template-yt.png(151KB)
----spec()
--------atom-smart-template-view-spec.coffee(165B)
--------atom-smart-template-spec.coffee(3KB)
----LICENSE.md(1KB)
----.gitignore(54B)
----CHANGELOG.md(504B)
----lib()
--------select-view.coffee(3KB)
--------atom-smart-template.coffee(3KB)
----styles()
--------atom-smart-template.less(247B)
----README.md(2KB)