From 0f3de66b4b824394305caff297d5a5f829d79b2e Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 8 Mar 2016 17:15:00 -0500 Subject: add mv views/*ecr views/ecrs/ --- src/guff/api-docs-html-view.cr | 2 +- src/guff/page-html-view.cr | 2 +- src/guff/views/api-docs.ecr | 73 ---------------------------------------- src/guff/views/ecrs/api-docs.ecr | 73 ++++++++++++++++++++++++++++++++++++++++ src/guff/views/ecrs/page.ecr | 14 ++++++++ src/guff/views/page.ecr | 14 -------- 6 files changed, 89 insertions(+), 89 deletions(-) delete mode 100644 src/guff/views/api-docs.ecr create mode 100644 src/guff/views/ecrs/api-docs.ecr create mode 100644 src/guff/views/ecrs/page.ecr delete mode 100644 src/guff/views/page.ecr (limited to 'src') diff --git a/src/guff/api-docs-html-view.cr b/src/guff/api-docs-html-view.cr index c0db5aa..3ee1e34 100644 --- a/src/guff/api-docs-html-view.cr +++ b/src/guff/api-docs-html-view.cr @@ -68,6 +68,6 @@ module Guff HTML.escape(s || "") end - ECR.def_to_s("./src/guff/views/api-docs.ecr") + ECR.def_to_s("./src/guff/views/ecrs/api-docs.ecr") end end diff --git a/src/guff/page-html-view.cr b/src/guff/page-html-view.cr index 42ea454..c300070 100644 --- a/src/guff/page-html-view.cr +++ b/src/guff/page-html-view.cr @@ -61,6 +61,6 @@ module Guff "text/html; charset=%s" % [@charset] end - ECR.def_to_s("./src/guff/views/page.ecr") + ECR.def_to_s("./src/guff/views/ecrs/page.ecr") end end diff --git a/src/guff/views/api-docs.ecr b/src/guff/views/api-docs.ecr deleted file mode 100644 index bda25f5..0000000 --- a/src/guff/views/api-docs.ecr +++ /dev/null @@ -1,73 +0,0 @@ -

<%= h(TITLE) %>

- -
-

Table of Contents

- - -
- -<% namespaces.each do |namespace| %> -
-

- <%= namespace %> methods -

- - <% methods(namespace).each do |method| %> -
-

- <%= namespace %>/<%= method %> -

- -

Description

-

- <%= h(method_text(namespace, method)) %> -

- -

Parameters

-
    <% - method_args(namespace, method).each do |arg| - %> -
  • - <%= - arg - %> - - <%= - h(arg_text(namespace, method, arg)) - %> -
  • - <% end %>
-
- <% end %> -
-<% end %> diff --git a/src/guff/views/ecrs/api-docs.ecr b/src/guff/views/ecrs/api-docs.ecr new file mode 100644 index 0000000..bda25f5 --- /dev/null +++ b/src/guff/views/ecrs/api-docs.ecr @@ -0,0 +1,73 @@ +

<%= h(TITLE) %>

+ +
+

Table of Contents

+ + +
+ +<% namespaces.each do |namespace| %> +
+

+ <%= namespace %> methods +

+ + <% methods(namespace).each do |method| %> +
+

+ <%= namespace %>/<%= method %> +

+ +

Description

+

+ <%= h(method_text(namespace, method)) %> +

+ +

Parameters

+
    <% + method_args(namespace, method).each do |arg| + %> +
  • + <%= + arg + %> + + <%= + h(arg_text(namespace, method, arg)) + %> +
  • + <% end %>
+
+ <% end %> +
+<% end %> diff --git a/src/guff/views/ecrs/page.ecr b/src/guff/views/ecrs/page.ecr new file mode 100644 index 0000000..e009ac1 --- /dev/null +++ b/src/guff/views/ecrs/page.ecr @@ -0,0 +1,14 @@ + + + + + <%= h(@title) %> + <%= page_headers %> + + + ><%= + @body + %> + + <%= page_footers %> + diff --git a/src/guff/views/page.ecr b/src/guff/views/page.ecr deleted file mode 100644 index e009ac1..0000000 --- a/src/guff/views/page.ecr +++ /dev/null @@ -1,14 +0,0 @@ - - - - - <%= h(@title) %> - <%= page_headers %> - - - ><%= - @body - %> - - <%= page_footers %> - -- cgit v1.2.3