ereader

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package ereader serves server-rendered HTML for stock Kobo and Kindle browsers that cannot use OPDS or the React app. Those browsers have no flexbox or modern CSS, minimal JavaScript, no Basic Auth, and (Kobo) clear cookies on close, so pages use inline styles rather than attribute selectors, block-level links stacked vertically at full width, 12px+ padding and explicit borders on tap targets, and <input type="submit"> rather than <button>. Every interpolated value goes through html.EscapeString, since titles and names come straight from file metadata.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(e *echo.Echo, db *bun.DB, downloadCache *downloadcache.Cache, bookService *books.Service)

RegisterRoutes registers all eReader routes.

func RenderPage

func RenderPage(content string) string

RenderPage wraps content in the base template.

func ResolveShortURL

func ResolveShortURL(c echo.Context, deviceService *devices.Service) error

ResolveShortURL redirects a short code to the full eReader URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址