diff options
author | Martin Fischer <martin@push-f.com> | 2022-10-28 10:56:38 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-10-28 12:25:57 +0200 |
commit | 20555bba82f9420998ce0d4b42f29d9398d5036b (patch) | |
tree | 729c7b7407ac80c5c52f50aab26869a497dee834 /README.md | |
parent | 0b699948d33c6b209439e2eb77c60c220130dc6b (diff) |
drop support for Lua shebangs
Now that we have Lua templating, which is more flexible,
it doesn't make sense to keep Lua shebangs around.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -111,20 +111,6 @@ Note that: * Note that none of these constructs can be nested. E.g. `{{foo|{{bar}} }}` or `{{foo|<raw>test</raw>}}` will not work as you might expect. -## Lua shebangs - -Files can start with a shebang like `#!hello`, which will -interpret the following text with the `view` function returned -by in this case `bin/hello.lua`, e.g. - -```lua -function view(text) - return '<pre>' .. gitpad.html_escape(string.upper(text)) .. '</pre>' -end - -return {view=view} -``` - ## Contributing Feedback, bug reports and suggestions are welcome! |