From 24cd013e28736cc04d08b4416c3c748153b09688 Mon Sep 17 00:00:00 2001 From: Bao Pham Date: Thu, 12 Apr 2012 20:53:54 -0700 Subject: Add more templates for html, python, and java --- template/python/base-class.py | 7 +++++++ template/python/snip-class.py | 3 +++ template/python/snip-doc.py | 3 +++ 3 files changed, 13 insertions(+) create mode 100644 template/python/base-class.py create mode 100644 template/python/snip-class.py create mode 100644 template/python/snip-doc.py (limited to 'template/python') 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_}} +""" -- cgit v1.2.3-54-g00ecf