A webmail client. Forked from https://git.sr.ht/~migadu/alps
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

4 лет назад
4 лет назад
4 лет назад
1234567891011121314151617181920212223242526272829303132
  1. # Themes
  2. They should be put in `themes/<name>/`.
  3. Templates in `themes/<name>/*.html` override default templates in plugins.
  4. Assets in `themes/<name>/assets/*` are served by the HTTP server at
  5. `/themes/<name>/assets/*`.
  6. # Plugins
  7. Plugins can be written in Go or in Lua and live in `plugins/<name>/`.
  8. Plugins can provide their own templates in `plugins/<name>/public/*.html`.
  9. Assets in `plugins/<name>/public/assets/*` are served by the HTTP server at
  10. `/plugins/<name>/assets/*`.
  11. ## Go plugins
  12. They can use the [Go plugin helpers] and need to be included at compile-time in
  13. `cmd/alps/main.go`.
  14. ## Lua plugins
  15. The entry point is at `plugins/<name>/main.lua`.
  16. API:
  17. * `alps.on_render(name, f)`: prior to rendering the template `name`, call
  18. `f` with the template data (the special name `*` matches all templates)
  19. * `alps.set_filter(name, f)`: set a template function
  20. * `alps.set_route(method, path, f)`: register a new HTTP route, `f` will be
  21. called with the HTTP context