• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

template-to-file

a atom package use undescrore.tempalte transform template file to file when save
  • #undescrore
  • #tempalte
  • #file
huangjinlin
0.3.0 534
0
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

atom-template-to-file

a atom package use undescrore.tempalte transform template file to file when save

features

  • press "ctrl+s" to convert file in same path
  • use <%//extension:txt%> to assign taragt file extension

installation

apm install template-to-file

create

# command palette 
Ctrl+Shift+P
input "Generate Package"

debug

#open devtool 
Ctrl+Shift+I
#reload 
Ctrl+Shift+F5/window reload(in command pannel)/Ctrl+R(in devtool)
#clear console 
Ctrl+L(in devtool)

publish

# first time 
git tag -a v0.1.0 -m "release 0.1.0 version"
git push origin --tags
apm publish minor
# other time 
apm publish minor

resolve problem

1.how to active when init remove activationCommands in package.json

"activationCommands": {
  "atom-workspace": "template-to-file:toggle"
},

2.atom.notifications.addErrorgenerate error

try{
 
}catch(e){
-  atom.notifications.addError('error', {detail: e.toString(), dismissable: true});
+  throw e
}

refer to

  • atom-markdown-to-html
  • es6 模板字符串
  • atom snippets

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by