partials directory

Author Message

jojo
Posts: 15
Posted on: 2016-12-10 02:55:29.000
Hi,

Would you be able to say what the partials directory is for and why those files are separate?

Thanks!

Rocket Man
Posts: 312
Posted on: 2017-02-28 11:17:03.000
Hi Jojo,

the /partials/ directory is for any piece of code that you would like to reuse in multiple pages. The (display-partial) function loads that code and inserts it in any page:

Function: (display-partial)

Usage: (display-partial "partial-file-name")

Returns: Loads the instructions in the file "partial-file-name" in the $PARTIAL_PATH subdirectory
Note: The ".lsp" extension is added automatically.


Views: 642