Snippets of Sublime Text for Flux
- View
For example in a file called new.jade, we do write 'view' and then press the 'TAB' key.
viewAnd then we get something like this:
extends ../../../layout/layout.jade
//- @view : new
//- @main : my_module/account
//- @author :
block content
Every time that we press the 'TAB' key, the cursor will displace of line on line.
- Add
For example in a file called new.coffee , we do write 'add' and then press the 'TAB' key.
addAnd then we get something like this:
###
Module description
@class new
@main my_module/account
@author
###
yOSON.AppCore.addModule "new", (Sb) ->
- Controller
For example in a file called new.styl , we do write 'controller' and then press 'TAB' key.
controllerAnd then we get something like this:
/*!!
*
* @controller : affiliation
* @module : my_module
* @author :
*
*/
@require '../../_config/*'
@require '../../_mixins/*'
- View
viewAnd then we get something like this:
/*!!
*
* @view :
* @controller : affiliation
* @module : my_module
* @author :
*
*/