You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,8 @@ $ cabal install
12
12
13
13
```sh
14
14
$ cd example-website
15
-
$ plate-compile
16
-
$ plate
15
+
$ platecompile
16
+
$ plate run
17
17
```
18
18
19
19
## Project goals
@@ -30,8 +30,8 @@ $ plate
30
30
1. Put [CommonMark](http://commonmark.org/) documents under `data/`.
31
31
1. Put templates under `tpl/`.
32
32
1. Put static files under `static/`.
33
-
1. Run `plate-compile` to create cache by converting CommonMark to HTML and applying templates.
34
-
1. Run `plate` to start the HTTP server.
33
+
1. Run `platecompile` to create cache by converting CommonMark to HTML and applying templates.
34
+
1. Run `plate run` to start the HTTP server.
35
35
36
36
Use the `example-website/` directory as a reference.
37
37
@@ -106,16 +106,17 @@ Files in the `static/` directory will be served directly.
106
106
107
107
… is done with two steps:
108
108
109
-
-`plate-compile`
110
-
-`plate`
109
+
-`platecompile`
110
+
-`plate run`
111
111
112
-
`plate-compile` reads the source documents, converts CommonMark to HTML, applies the templating to create the cache, and put them under the `output/` directory. `plate` serves the contents of the `output/` and `static/`.
112
+
`platecompile` reads the source documents, converts CommonMark to HTML, applies the templating to create the cache, and put them under the `output/` directory. `plate run` serves the contents of the `output/` and `static/`.
113
113
114
-
When running `plate` without the `-d` or `--debug` option, the [file descriptor cache duration](http://www.yesodweb.com/blog/2012/09/caching-fd) will be set to 60 seconds. Caching file descriptors significantly improves the performance, but it may cause misbehavior if you rapidly change site contents and do the refresh from the browser. Make sure you set `-d` during development.
114
+
When running `plate run` without the `-d` or `--debug` option, the [file descriptor cache duration](http://www.yesodweb.com/blog/2012/09/caching-fd) will be set to 60 seconds. Caching file descriptors significantly improves the performance, but it may cause misbehavior if you rapidly change site contents and do the refresh from the browser. Make sure you set `-d` during development.
115
115
116
-
`plate` opens the port 3000 by default. You may override this with `-s` or `--socket` option. Example:
116
+
`plate run` opens the port 3000 by default. You may override this with `-s` or `--socket` option. Example:
0 commit comments