-
Notifications
You must be signed in to change notification settings - Fork 19
Settings
The settings page allows you to configure what Sketchpad takes in and puts out.
The paths section allows to configure your main project input. All paths are root-relative locations to folders in your project. When entering paths, an indicator will tell you if the path is valid.
By defaults, Sketchpad comes configured with 3 controller folders, which show in the main Sketchpad UI:

Each folder can be reordered, toggled or deleted (Careful! There is no undo).
Click the "Add path" button to add new name:path pairings.
These folders provide locations to store and retrieve custom assets:

You can load Blade templates from your views/ folder using the special package syntax view('sketchpad::somefile')
Script and style files you place in your assets/ folder will be available to be loaded into the main Sketchpad UI (see next section).
Sketchpad allows you to load custom assets into the main Sketchpad UI, to perhaps interact with back end code, or even modify the UI.
Simply list assets locally (using the special /sketchpad/user/ path, or globally, perhaps using a CDN:

Note that user assets are loaded via a binary passthrough, and not directly from the filesystem, so there is no need for these assets to be in your public/ folder.
Resources and assets can be reloaded via the companion Sketchpad Reload module:

Full installation and configuration information is available on its GitHub page.
Finally, you can update various front end components using the UI controls provided at the bottom of the settings page.