aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2011-10-27 19:05:10 +0900
committermattn <mattn.jp@gmail.com>2011-10-27 19:05:10 +0900
commit1948893b3d69107ddc3c5f1c9d83a7fa4f3d0bcc (patch)
treee9fb62bc49a93779240a1014f9adb3a04b31c98a /template
parente412149167854f28dd6c5fec8a7c070467835d93 (diff)
downloadvim-sonictemplate-1948893b3d69107ddc3c5f1c9d83a7fa4f3d0bcc.tar.gz
vim-sonictemplate-1948893b3d69107ddc3c5f1c9d83a7fa4f3d0bcc.tar.bz2
vim-sonictemplate-1948893b3d69107ddc3c5f1c9d83a7fa4f3d0bcc.zip
add some.
Diffstat (limited to 'template')
-rw-r--r--template/for.c3
-rw-r--r--template/for.cpp3
-rw-r--r--template/foreach.cpp3
-rw-r--r--template/pit.perl7
-rw-r--r--template/sub.perl5
5 files changed, 21 insertions, 0 deletions
diff --git a/template/for.c b/template/for.c
new file mode 100644
index 0000000..210541e
--- /dev/null
+++ b/template/for.c
@@ -0,0 +1,3 @@
+for (int n = 0; n < {{_input_:count}}; n++) {
+ {{_cursor_}}
+}
diff --git a/template/for.cpp b/template/for.cpp
new file mode 100644
index 0000000..210541e
--- /dev/null
+++ b/template/for.cpp
@@ -0,0 +1,3 @@
+for (int n = 0; n < {{_input_:count}}; n++) {
+ {{_cursor_}}
+}
diff --git a/template/foreach.cpp b/template/foreach.cpp
new file mode 100644
index 0000000..411e066
--- /dev/null
+++ b/template/foreach.cpp
@@ -0,0 +1,3 @@
+BOOST_FOREACH(auto x, {{_input_:variable}}) {
+ {{_cursor_}}
+}
diff --git a/template/pit.perl b/template/pit.perl
new file mode 100644
index 0000000..710aa50
--- /dev/null
+++ b/template/pit.perl
@@ -0,0 +1,7 @@
+use Config::Pit;
+
+my $config = pit_get("{{_input_:domain}}", require => {
+ "username" => "username of {{_input_:domain}}",
+ "password" => "password of {{_input_:domain}}",
+});
+{{_cursor_}}
diff --git a/template/sub.perl b/template/sub.perl
new file mode 100644
index 0000000..32f0e6d
--- /dev/null
+++ b/template/sub.perl
@@ -0,0 +1,5 @@
+sub {{_input_:function name}} {
+ my ($self{{_input_:arguments}}) = @_;
+ {{_cursor_}}
+}
+