From 39ee36edba71bb839b848a007f1469ebf8f8ecc4 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Thu, 7 Apr 2011 19:26:23 +0000 Subject: [PATCH] run inflate to produce files --- templates/gnuplot.html.ep | 11 ++++++++ templates/index.html.ep | 21 +++++++++++++++ templates/layouts/default.html.ep | 4 +++ templates/ping.html.ep | 3 +++ web_ui.pl | 45 ------------------------------- 5 files changed, 39 insertions(+), 45 deletions(-) create mode 100644 templates/gnuplot.html.ep create mode 100644 templates/index.html.ep create mode 100644 templates/layouts/default.html.ep create mode 100644 templates/ping.html.ep diff --git a/templates/gnuplot.html.ep b/templates/gnuplot.html.ep new file mode 100644 index 0000000..6cb9816 --- /dev/null +++ b/templates/gnuplot.html.ep @@ -0,0 +1,11 @@ +% layout 'default'; +<%= form_for gnuplot => begin %> + <%= text_area 'sql', cols => 80, rows => 5 %> +
with <%= select_field with => [qw(dots points steps lines)], 'dots' %> + <%= submit_button 'execute' %> +<% end %> +% if ( $img ) { + +% } +
<%= $gnuplot %>
+ diff --git a/templates/index.html.ep b/templates/index.html.ep new file mode 100644 index 0000000..a06ee19 --- /dev/null +++ b/templates/index.html.ep @@ -0,0 +1,21 @@ +% layout 'default'; +% title 'Gearman demo'; + + + +Gnuplot graphs: + + + +Low-level API tests: + +<%= link_to 'HTTP ping' => 'ping_http' %> +<%= link_to 'Gearman ping' => 'ping_g' %> + diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep new file mode 100644 index 0000000..1694d57 --- /dev/null +++ b/templates/layouts/default.html.ep @@ -0,0 +1,4 @@ + + <%= title %> + <%= content %> + diff --git a/templates/ping.html.ep b/templates/ping.html.ep new file mode 100644 index 0000000..d75ab87 --- /dev/null +++ b/templates/ping.html.ep @@ -0,0 +1,3 @@ +% layout 'default'; +pong: <%= $pong %> + diff --git a/web_ui.pl b/web_ui.pl index 733873e..742252f 100755 --- a/web_ui.pl +++ b/web_ui.pl @@ -154,48 +154,3 @@ get '/_redis' => sub { }; app->start; -__DATA__ - -@@ index.html.ep -% layout 'default'; -% title 'Gearman demo'; - - - -Gnuplot graphs: - - - -Low-level API tests: - -<%= link_to 'HTTP ping' => 'ping_http' %> -<%= link_to 'Gearman ping' => 'ping_g' %> - -@@ ping.html.ep -% layout 'default'; -pong: <%= $pong %> - -@@ gnuplot.html.ep -% layout 'default'; -<%= form_for gnuplot => begin %> - <%= text_area 'sql', cols => 80, rows => 5 %> -
with <%= select_field with => [qw(dots points steps lines)], 'dots' %> - <%= submit_button 'execute' %> -<% end %> -% if ( $img ) { - -% } -
<%= $gnuplot %>
- -@@ layouts/default.html.ep - - <%= title %> - <%= content %> - -- 2.20.1