Searches a file for partials and caches them
Searches a file for partials and caches them
Partials referenced are relative to the file in which they appear. This method will fail if the referenced partial is not found on the filesystem.
the file to scan for test.partials
the com.gilt.handlebars.Program from parsing file
Searches a file in a class (jar) for partials and caches them
Searches a file in a class (jar) for partials and caches them
Partials referenced are relative to the file in which they appear. This method will fail if the referenced partial is not found on the filesystem.
the class from which to get template as resource
the path inside the jar the class lives in
the com.gilt.handlebars.Program from parsing file
Manages caching of partials has com.gilt.handlebars.Handlebars
NOTE that each partial must have a unique name since they are stored globally (to match the JavaScript implementation). This constraint can be worked around slightly by using subdirectories to reference partials, which this method supports fully.