GBDictionaryTemplateLoader Class Reference
| Inherits from | GRMustacheTemplateLoader |
| Declared in | GBDictionaryTemplateLoader.h GBDictionaryTemplateLoader.m |
Overview
Encapsulates template loading with partials provided through a dictionary.
This is almost straight from GRMustache example, with just a bit of cleanup and garbage collector modifications. Although the functionality could easily be implemented by GBTemplateHandler, it was moved to a separate class to better encapsulate GRMustache logic and prevent bloating public interface of GBTemplateHandler with all specifics of GRMustacheTemplateLoader that are not needed for creating output.
Tasks
Initialization & disposal
-
+ loaderWithDictionary:Returns a new autoreleasedGBDictionaryTemplateLoaderinstance. -
– initWithDictionary:Initializes the template loader with the given dictionary of partials.