|
9 | 9 | * getPublicUrls: |
10 | 10 | * Params: (type | string ) eg. 'scripts', 'stylesheets' |
11 | 11 | * Description: |
12 | | - * returns array of urls for a type (script, stylesheet, nunjucks etc). do we need to expose this? |
| 12 | + * returns array of urls for a type (script, stylesheet, nunjucks etc). |
13 | 13 | * getFileSystemPaths: |
14 | 14 | * Params: (type | string ) eg. 'scripts', 'stylesheets' |
15 | 15 | * Description: |
16 | | - * returns array paths to the file in the filesystem for a type (script, stylesheet, nunjucks etc) do we need to expose this? |
| 16 | + * returns array paths to the file in the filesystem for a type (script, stylesheet, nunjucks etc) |
17 | 17 | * getPublicUrlAndFileSystemPaths: |
18 | 18 | * Params: (type | string ) eg. 'scripts', 'stylesheets' |
19 | 19 | * Description: |
20 | 20 | * returns Array of objects, each object is an extension and each obj has the filesystem & public url for the given type |
21 | 21 | * getAppConfig: |
22 | 22 | * Params: (type | string ) eg. 'scripts', 'stylesheets' |
23 | 23 | * Description: |
24 | | - * to do |
| 24 | + * Returns an object containing two keys(scripts & stylesheets), each item contains an array of full paths to specific files. |
| 25 | + * This is used in the views to output links and scripts each file. |
25 | 26 | * getAppViews: |
26 | | - * Params: (type | string ) eg. 'scripts', 'stylesheets' |
| 27 | + * Params: (additionalViews | Array ) eg.extensions.getAppViews([path.join(__dirname, '/app/views/'),path.join(__dirname, '/lib/')]) |
27 | 28 | * Description: |
28 | | - * To do |
| 29 | + * Returns an array of paths to nunjucks templates which is used to configure nunjucks in server.js |
29 | 30 | * setExtensionsByType |
30 | 31 | * Params: N/A |
31 | 32 | * Description: only used for test purposes to reset mocked extensions items to ensure they are up-to-date when the tests run |
|
0 commit comments