Overview
PocketPages is a 23KB pluggable Multi-Page Application (MPA) preprocessor for PocketBase. It ships with an EJS template engine and uses a flexible plugin system that lets you efficiently choose additional features (including other templating engines) for your application while maintaining maximum performance.
Use PocketPages to create slim and modern web apps:
- Start small and iterate
- SEO-first principals
- No build step
- Fast server-side rendering
Hello world in just one file
// index.ejs
<%= `Hello, world!` %>
With PocketPages, building apps is easy again. Inside <%
and %>
, you can leverage the full power of ES6 JavaScript inside PocketBase's JSVM, which exposes all of PocketBase's built-in functions.
Retro file-based routing
PocketPages borrows inspiration from SvelteKit's file-based routing architecture, so you can do this:
// +layout.ejs
<html>
<body style="background-color: #b5dcb5">
<%- slot>
</body>
</html>