diff options
author | mattn <mattn.jp@gmail.com> | 2014-09-03 13:58:17 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2014-09-03 13:58:17 +0900 |
commit | ac0a73ba870774f0849234610f6373b644c7ac8b (patch) | |
tree | 8536c2da7ad8b709086d1e2b0a5295e2d5a1c41f | |
parent | aba2040ffc3e3e644ef5faa2fb79d7f9d0276603 (diff) | |
parent | 454737b20151ff283d4c4610c105d0e389e2e07b (diff) | |
download | vim-sonictemplate-ac0a73ba870774f0849234610f6373b644c7ac8b.tar.gz vim-sonictemplate-ac0a73ba870774f0849234610f6373b644c7ac8b.tar.bz2 vim-sonictemplate-ac0a73ba870774f0849234610f6373b644c7ac8b.zip |
Merge branch 'master' of https://github.com/mattn/sonictemplate-vim
-rw-r--r-- | template/python/base-class.py | 1 | ||||
-rw-r--r-- | template/python/base-main.py | 1 | ||||
-rw-r--r-- | template/python/base-test.py | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/template/python/base-class.py b/template/python/base-class.py index ba7c7d8..edc2c3d 100644 --- a/template/python/base-class.py +++ b/template/python/base-class.py @@ -2,6 +2,7 @@ {{_name_}} """ + class {{_expr_:substitute('{{_input_:name}}', '\w\+', '\u\0', '')}}(object): def __init__(self{{_cursor_}}): diff --git a/template/python/base-main.py b/template/python/base-main.py index e40b7ba..543dd86 100644 --- a/template/python/base-main.py +++ b/template/python/base-main.py @@ -1,5 +1,6 @@ # vim: fileencoding=utf-8 + def main(): {{_cursor_}} diff --git a/template/python/base-test.py b/template/python/base-test.py index 9f00533..5aecbe0 100644 --- a/template/python/base-test.py +++ b/template/python/base-test.py @@ -4,6 +4,7 @@ import unittest + class {{_expr_:substitute('{{_input_:name}}', '\w\+', '\u\0', '')}}(unittest.TestCase): def setUp(self): pass |