From 1948893b3d69107ddc3c5f1c9d83a7fa4f3d0bcc Mon Sep 17 00:00:00 2001 From: mattn Date: Thu, 27 Oct 2011 19:05:10 +0900 Subject: add some. --- template/for.c | 3 +++ template/for.cpp | 3 +++ template/foreach.cpp | 3 +++ template/pit.perl | 7 +++++++ template/sub.perl | 5 +++++ 5 files changed, 21 insertions(+) create mode 100644 template/for.c create mode 100644 template/for.cpp create mode 100644 template/foreach.cpp create mode 100644 template/pit.perl create mode 100644 template/sub.perl 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_}} +} + -- cgit v1.2.3-54-g00ecf