diff options
| author | mattn <mattn.jp@gmail.com> | 2012-04-12 21:10:48 -0700 |
|---|---|---|
| committer | mattn <mattn.jp@gmail.com> | 2012-04-12 21:10:48 -0700 |
| commit | cc759ac441d910f4b47a378e02301c538a05ca1e (patch) | |
| tree | 2cf941e93df106f9cbc9e2346dfeba11d6b9ce25 /template/python | |
| parent | 98266fe2cd45b6d353955c9279dc0fab0b8d5098 (diff) | |
| parent | 8e9cfb1e124b4d2329c2b671370a65ce37e0923a (diff) | |
| download | vim-sonictemplate-cc759ac441d910f4b47a378e02301c538a05ca1e.tar.gz vim-sonictemplate-cc759ac441d910f4b47a378e02301c538a05ca1e.tar.bz2 vim-sonictemplate-cc759ac441d910f4b47a378e02301c538a05ca1e.zip | |
Merge pull request #5 from baopham/master
some more templates for html, python and java
Diffstat (limited to 'template/python')
| -rw-r--r-- | template/python/base-class.py | 7 | ||||
| -rw-r--r-- | template/python/snip-class.py | 3 | ||||
| -rw-r--r-- | template/python/snip-doc.py | 3 |
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_}} +""" |
