Collection of my general helper functions for handlebars template system
- Source:
- Copyright:
- 5/24/19
Methods
(inner) loadPartialFiles(partialsDir, prefix)
- Source:
- See:
Walk a directory for all files with extensions hbs and register them as partials for handlebars. This helper function makes it easy for us to quickly register a directory of partials (includable files) for use in our handlebar view templates
Parameters:
Name | Type | Description |
---|---|---|
partialsDir |
string | file path |
prefix |
string |
(inner) setupJrHandlebarHelpers()
- Source:
Register some custom helper functions that become available in handlebar template view files (.hbs)