Skip to content
Myr

more partial docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent a90fd85 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:docs/guide.md+2 added-1 removed
77 unmodified lines
78 * _home_ Application base path used for _res.redirect()_ and transparently handling mounted apps.79 * _views_ Root views directory defaulting to **CWD/views**80 * _view engine_ Default view engine name for views rendered without extensions81 * _view options_ An object specifying global view options82 * _partials_ Root view partials directory defaulting to _views_/partials.82 * _stream threshold_ Bytesize indicating when a file should be streamed for _res.sendfile()_ using _fs.ReadStream()_ and _sys.pump()_.8384### Routing85
419 unmodified lines
505 * _collectionLength_ Length of the collection506507For documentation on altering the object name view [res.partial()](http://expressjs.com/guide.html#res-partial-view-options-).508509NOTE: partials are not recommended for large collections (150+) because the view system adds to the overhead. For example do _not_ implement a simple ul list with partial collection support, simply create a partial and iterate within that single partial, as this is far more efficient than rendering 150+ templates.510511### Template Engines512513Below are a few template engines commonly used with Express:514
530 unmodified lines