Enjoy PocketPages? Give it a star on GitHub 🎉
PocketPages

Directory Structure

All PocketPages must reside within the pb_hooks/pages/ directory of your project. This is the designated location where PocketPages looks for pages to serve.

Example Structure:

pb_hooks/
   pages/
      index.ejs
      about.ejs
      contact.ejs
      products/
         index.ejs
         details.ejs

    Introduction

    • Overview of PocketPages

    Getting Started

    • Installation
    • Starter Kits
    • Upgrading

    User Guide

    • Basics

      • Creating a Page
      • Directory Structure
      • Routing
      • Accessing Parameters
      • Loading Data
      • JSON
    • Templating

      • Partials
      • Layouts
    • Security and Content

      • Private files
      • Middleware
      • Asset Management
      • Static content
      • Managing Secrets
    • Configuration

      • +config.js
      • Caching
      • Debugging
      • Going Live
    • Official Plugins

      • Overview
      • EJS
      • Markdown
      • Realtime
      • Authentication
      • JS SDK
      • Micro Dash
      • Authoring

    Reference

    • Global API

      • dbg
      • info
      • warn
      • error
      • env
      • store
      • stringify
      • url
    • Context API

      • auth
      • api
      • asset
      • body
      • data
      • echo
      • formData
      • meta
      • params
      • redirect/flash
      • request
      • resolve
      • response
    • JSVM

    • Plugin Authoring

    Guides

    • 📒 HTMX Integration
    • 📒 Custom Domains on Fly+Cloudflare
    • 📒 Custom Domains on pockethost.io
    • 📒 Google OAuth2
    • 📒 One-Time Passwords
    • 📒 Outgoing Email with Amazon SES
    • 📒 Setting up a new email domain in Google Suite
  • Docs