aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--template/python/base-class.py1
-rw-r--r--template/python/base-main.py1
-rw-r--r--template/python/base-test.py1
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