aboutsummaryrefslogtreecommitdiff
path: root/funcsignature.etlua
diff options
context:
space:
mode:
authorAlexander Pickering <alex@cogarr.net>2020-07-05 17:18:56 -0400
committerAlexander Pickering <alex@cogarr.net>2020-07-05 17:18:56 -0400
commite87b06ee0fe2a588b72a356bbb8378899365d626 (patch)
tree0d0acd945a70644835e8958425e6d5e6c10196a6 /funcsignature.etlua
parentd2ba262c5307aa14c325ef53d8e4e56a5ece0376 (diff)
downloadmdoc-e87b06ee0fe2a588b72a356bbb8378899365d626.tar.gz
mdoc-e87b06ee0fe2a588b72a356bbb8378899365d626.tar.bz2
mdoc-e87b06ee0fe2a588b72a356bbb8378899365d626.zip
Add rockspec
Add a rockspec and move the files around so that luarocks can install it correctly
Diffstat (limited to 'funcsignature.etlua')
-rw-r--r--funcsignature.etlua22
1 files changed, 0 insertions, 22 deletions
diff --git a/funcsignature.etlua b/funcsignature.etlua
deleted file mode 100644
index 48d92ba..0000000
--- a/funcsignature.etlua
+++ /dev/null
@@ -1,22 +0,0 @@
-<% assert(func, "Requires function to render a function signature") %>
-<% assert(funcname, "Requires a function name to render a function signature") %>
-<a href="#<%- funcname %>"><%- funcname %></a>(
- <% if func.params and #func.params > 0 then %>
- <% local optchain = false %>
- <% for paramid, param in pairs(func.params) do %>
- <% if paramid == 1 and param.optional then %>
- [
- <% elseif param.optional then %>
- [,
- <% elseif paramid > 1 then %>
- ,
- <% end %>
- <%- param.name %>
- <% if paramid == 1 and param.optional then %>
- ]
- <% elseif param.optional then %>
- ]
- <% end %>
- <% end %>
- <% end %>
-)