aboutsummaryrefslogtreecommitdiff
path: root/template/python
diff options
context:
space:
mode:
authorBao Pham <gbaopham@gmail.com>2012-04-12 20:53:54 -0700
committerBao Pham <gbaopham@gmail.com>2012-04-12 20:53:54 -0700
commit24cd013e28736cc04d08b4416c3c748153b09688 (patch)
treec6a1b586403b56f3653b20e461d8255d2d2cf512 /template/python
parent98266fe2cd45b6d353955c9279dc0fab0b8d5098 (diff)
downloadvim-sonictemplate-24cd013e28736cc04d08b4416c3c748153b09688.tar.gz
vim-sonictemplate-24cd013e28736cc04d08b4416c3c748153b09688.tar.bz2
vim-sonictemplate-24cd013e28736cc04d08b4416c3c748153b09688.zip
Add more templates for html, python, and java
Diffstat (limited to 'template/python')
-rw-r--r--template/python/base-class.py7
-rw-r--r--template/python/snip-class.py3
-rw-r--r--template/python/snip-doc.py3
3 files changed, 13 insertions, 0 deletions
diff --git a/template/python/base-class.py b/template/python/base-class.py
new file mode 100644
index 0000000..a606982
--- /dev/null
+++ b/template/python/base-class.py
@@ -0,0 +1,7 @@
+"""
+{{_name_}}
+"""
+
+class {{_expr_:substitute('{{_input_:name}}', '\w\+', '\u\0', '')}}:
+ def __init__(self):
+ {{_cursor_}}
diff --git a/template/python/snip-class.py b/template/python/snip-class.py
new file mode 100644
index 0000000..9ed48aa
--- /dev/null
+++ b/template/python/snip-class.py
@@ -0,0 +1,3 @@
+class {{_expr_:substitute('{{_input_:name}}', '\w\+', '\u\0', '')}}:
+ def __init__(self):
+ {{_cursor_}}
diff --git a/template/python/snip-doc.py b/template/python/snip-doc.py
new file mode 100644
index 0000000..8612028
--- /dev/null
+++ b/template/python/snip-doc.py
@@ -0,0 +1,3 @@
+"""
+{{_cursor_}}
+"""