f6ef53ed3102

vim: django view snippet
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 08 Dec 2010 17:11:43 -0500
parents ebf268c8af02
children edd3e758a0c8
branches/tags (none)
files vim/snippets/django.snippets

Changes

--- a/vim/snippets/django.snippets	Mon Dec 06 13:05:36 2010 -0500
+++ b/vim/snippets/django.snippets	Wed Dec 08 17:11:43 2010 -0500
@@ -114,3 +114,7 @@
 
 snippet reverse
 	reverse('${1:view-name}'${2:, args=[]}${3:, kwargs=None})${4}
+snippet view
+	@render_to('${1}')
+	def ${2:view_name}(request${3:, ...}):${4}
+		return {}