Meteor Live Template 定义几个快捷键
来源:互联网 发布:js获取当天日期时间 编辑:程序博客网 时间:2024/05/22 03:26
介绍
WebStorm9 已经支持 Meteor,对于API的调用是非常方便的,但是在Live Template里面没有他的模板,我在此基础上新建几个常用的模板,方便使用。
模板
method
Meteor.methods({ "$methodName$": function($param$) { $todo$ },});
coll
$Name$ = new Mongo.Collection('$CollectionName$');$Name$.allow({ insert: function( ) { return false; }, update: function( ) { return false; }, remove: function() { return false; }});$Name$.deny({ insert: function( ) { return false; }, update: function( ) { return false; }, remove: function() { return false; }});
call
Meteor.call("$methodName$", $param$ , function(error, result) { if (error) { return new Meteor.Error(err.reason) } $todo$});
helper
Template.$templateName$.helpers({ $methodName$: function() { $todo$ }});
event
Template.$templateName$.events({ "$onclick$": function(e, template) { e.preventDefault() $todo$ },});
config
Accounts.ui.config({ requestPermissions: {}, requestOfflineToken: {}, passwordSignupFields: "$USERNAME_ONLY$",});
register
Template.registerHelper("$helperName$", function($params$) { $todo$});
log
console.log($comment$);
0 0
- Meteor Live Template 定义几个快捷键
- Uva-Live 3905-Meteor
- Live Archive 3905 Meteor
- meteor 渲染template实例
- 自定义Live Template Variables
- Live Template Abbreviation
- Live Template Variables
- intellij live template整理
- 【Android Studio】Live Template
- Live Template的用法
- Android Studio 常用快捷键,live template,插件及其他小技巧
- IntelliJ Live Template进阶使用
- IntelliJ idea 中Live Template
- 提高编码效率-Live Template
- Live Template快速撸代码
- idea live template简单使用
- windows live writer 快捷键
- Windows Live Writer快捷键
- MFC- 使用问题集
- C++开源库
- JavaScript 原型的概念及使用
- CentOS6.5安装最新版 firefox
- iOS之SDWEBIMAGE的使用
- Meteor Live Template 定义几个快捷键
- 现代c++之线程本地存储thread_local
- Glide加载byte数组
- 在活动中使用toast
- 20170305STL01_泛型编程/模版
- 遭遇“HTTP 错误 500.19 无法访问请求的页面,因为该页的相关配置数据无效。”
- dubbo笔记
- 0307
- onThouch事件判断按钮是否被按住