Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: George Lemon <[email protected]>
  • Loading branch information
georgelemon committed Feb 17, 2024
1 parent 711e2ff commit 1765098
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tim.nim
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,18 @@ proc browserSync(x: (Port, int)) {.thread.} =
httpx.run(onRequest, settings)

proc precompile*(engine: TimEngine, callback: TimCallback = nil,
flush = true, waitThread = false, browserSyncPort = Port(6502), browserSyncDelay = 550) =
flush = true, waitThread = false, browserSyncPort = Port(6502),
browserSyncDelay = 550) =
## Precompiles available templates inside `layouts` and `views`
## directories to either static `.html` or binary `.ast`.
##
## Enable `flush` option to delete outdated generated
## files (enabled by default).
##
## Optionally, pass a custom `TimCallback`
## todo something with this `TimCallback` provided
##
## Use filesystem monitor by compiling with `-d:timHotCode` flag.
## In this case you can precompile templates in a separate thread.
## Use `waitThread` to keep the thread alive.
## Enable filesystem monitor by compiling with `-d:timHotCode` flag.
## Create a separate thread for precompiling templates. Use `waitThread` to keep the thread alive.
if flush: engine.flush()
when not defined release:
when defined timHotCode:
Expand Down

0 comments on commit 1765098

Please sign in to comment.