aboutsummaryrefslogtreecommitdiff
path: root/template/python
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2012-04-13 13:11:17 +0900
committermattn <mattn.jp@gmail.com>2012-04-13 13:11:17 +0900
commit7e2c231888ded45c9c78d282efe3d9d6c4b2bd19 (patch)
tree81816ab5ea7b75a06537efe38da2d21e79b3ef59 /template/python
parenta3b1d956c4a7311469b05c32e75dc4f067e7c271 (diff)
parentcc759ac441d910f4b47a378e02301c538a05ca1e (diff)
downloadvim-sonictemplate-7e2c231888ded45c9c78d282efe3d9d6c4b2bd19.tar.gz
vim-sonictemplate-7e2c231888ded45c9c78d282efe3d9d6c4b2bd19.tar.bz2
vim-sonictemplate-7e2c231888ded45c9c78d282efe3d9d6c4b2bd19.zip
Merge branch 'master' of github.com:mattn/sonictemplate-vim
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_}}
+"""