Browse files

Merge pull request #5 from baopham/master

some more templates for html, python and java
  • Loading branch information...
2 parents 98266fe + 8e9cfb1 commit cc759ac441d910f4b47a378e02301c538a05ca1e @mattn committed Apr 13, 2012
View
1 template/html/snip-css.html
@@ -0,0 +1 @@
+<link rel="stylesheet" type="text/css" href="{{_cursor_}}">
View
1 template/html/snip-icon.html
@@ -0,0 +1 @@
+<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
View
1 template/html/snip-js.html
@@ -0,0 +1 @@
+<script src="{{_cursor_}}" type="text/javascript"></script>
View
4 template/java/base-class.java
@@ -1,11 +1,11 @@
/**
* {{_name_}}
*/
-public class {{_name_}} {
+public class {{_expr_:substitute('{{_name_}}', '\w\+', '\u\0', '')}} {
/**
* Constructor
*/
- public {{_name_}}() {
+ public {{_expr_:substitute('{{_name_}}', '\w\+', '\u\0', '')}}() {
{{_cursor_}}
}
}
View
3 template/java/snip-comment-block.java
@@ -0,0 +1,3 @@
+/*
+ * {{_cursor_}}
+ */
View
3 template/java/snip-doc-comment.java
@@ -0,0 +1,3 @@
+/**
+ * {{_cursor_}}
+ */
View
7 template/python/base-class.py
@@ -0,0 +1,7 @@
+"""
+{{_name_}}
+"""
+
+class {{_expr_:substitute('{{_input_:name}}', '\w\+', '\u\0', '')}}:
+ def __init__(self):
+ {{_cursor_}}
View
3 template/python/snip-class.py
@@ -0,0 +1,3 @@
+class {{_expr_:substitute('{{_input_:name}}', '\w\+', '\u\0', '')}}:
+ def __init__(self):
+ {{_cursor_}}
View
3 template/python/snip-doc.py
@@ -0,0 +1,3 @@
+"""
+{{_cursor_}}
+"""

0 comments on commit cc759ac

Please sign in to comment.