Skip to content

razor-tmpl syntax definition & snippets for Sublime Text 3 or 2(not tested)

License

Notifications You must be signed in to change notification settings

magicdawn/razor-tmpl.sublime-package

Repository files navigation

#razor.sublime-package

razor-tmpl syntax definition & snippet for Sublime Text 3 or 2(not tested)

#download razor-tmpl for Package Control

#usage just use .razor as your template file ext,exmaple index.razor or you can use set syntax razor

#snippets

  • for -> @for(...)
  • each -> @each(item in items
  • layout-> @{ var layout = "layout_path"; }
  • dest -> @{ var dest = "dest_path";}
  • include -> @include("to_be_included")
  • = -> @(variable_or_expression)

the tab_trigger means : if you tap for and press the Tab button,then

@for(var i = 0;i < Things.length;i++){
	@(Things[i])
}

displayed

#Screenshot

About

razor-tmpl syntax definition & snippets for Sublime Text 3 or 2(not tested)

Resources

License

Stars

Watchers

Forks

Packages

No packages published