Skip to content

Commit

Permalink
remove mention of eliminated compile hook
Browse files Browse the repository at this point in the history
  • Loading branch information
terrablue committed Nov 5, 2023
1 parent f3f0e3b commit 9d46d23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
4 changes: 2 additions & 2 deletions docs/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ compatibility layer

### Extensible

* Different hooks available (`load`, `init`, `register`, `compile`, `publish`,
`bundle`, `serve`, `handle`, `route`)
* Different hooks available (`load`, `init`, `register`, `publish`, `bundle`,
`serve`, `handle`, `route`)
* Officially supported modules that are updated alongside Primate itself

## Resources
Expand Down
17 changes: 0 additions & 17 deletions docs/guide/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ subscribers accept different types of parameters, depending on the hook.
├─ # copy all files from `components` to `build/components`
├─ # copy .js files from `components` to `build/server`
├─ `compile`
│ └─ # modules compile server-side files into JavaScript
├─ `publish`
│ └─ # modules publish client-side code and announce entry points
Expand Down Expand Up @@ -171,20 +168,6 @@ defined in `components/clock.mustache`, a client requesting
`GET /clock?time=11:45am` will have the `view` handler show a mustache
component rendered into HTML.

## compile

***Executed** once

**Precondition** none

This hook allows modules to compile server-side components into JavaScript. It
is particularly useful for [frontend frameworks] which use their own
domain-specific languages (React/Solid's `jsx`, Vue's `vue` (SFC), Svelte's
`svelte` etc.) to be served through server-side rendering.

This hook accepts the app as its first and the next subscriber as its second
parameter.

## publish

***Executed** once
Expand Down

0 comments on commit 9d46d23

Please sign in to comment.